1 |
149 |
jeremybenn |
c { dg-do compile }
|
2 |
|
|
* Resent-From: Craig Burley <burley@gnu.org>
|
3 |
|
|
* Resent-To: craig@jcb-sc.com
|
4 |
|
|
* X-Delivered: at request of burley on mescaline.gnu.org
|
5 |
|
|
* Date: Wed, 16 Dec 1998 18:31:24 +0100
|
6 |
|
|
* From: Dieter Stueken <stueken@conterra.de>
|
7 |
|
|
* Organization: con terra GmbH
|
8 |
|
|
* To: fortran@gnu.org
|
9 |
|
|
* Subject: possible bug
|
10 |
|
|
* Content-Type: text/plain; charset=iso-8859-1
|
11 |
|
|
* X-Mime-Autoconverted: from 8bit to quoted-printable by mescaline.gnu.org id KAA09085
|
12 |
|
|
* X-UIDL: 72293bf7f9fac8378ec7feca2bccbce2
|
13 |
|
|
*
|
14 |
|
|
* Hi,
|
15 |
|
|
*
|
16 |
|
|
* I'm about to compile a very old, very ugly Fortran program.
|
17 |
|
|
* For one part I got:
|
18 |
|
|
*
|
19 |
|
|
* f77: Internal compiler error: program f771 got fatal signal 6
|
20 |
|
|
*
|
21 |
|
|
* instead of any detailed error message. I was able to break down the
|
22 |
|
|
* problem to the following source fragment:
|
23 |
|
|
*
|
24 |
|
|
* -------------------------------------------
|
25 |
|
|
PROGRAM WAP
|
26 |
|
|
|
27 |
|
|
integer(kind=8) ios
|
28 |
|
|
character*80 name
|
29 |
|
|
|
30 |
|
|
name = 'blah'
|
31 |
|
|
open(unit=8,status='unknown',file=name,form='formatted',
|
32 |
|
|
F iostat=ios) ! { dg-warning "INTEGER in IOSTAT" }
|
33 |
|
|
|
34 |
|
|
END
|
35 |
|
|
* -------------------------------------------
|
36 |
|
|
*
|
37 |
|
|
* The problem seems to be caused by the "integer(kind=2) ios" declaration.
|
38 |
|
|
* So far I solved it by simply using a plain integer instead.
|
39 |
|
|
*
|
40 |
|
|
* I'm running gcc on a Linux system compiled/installed
|
41 |
|
|
* with no special options:
|
42 |
|
|
*
|
43 |
|
|
* -> g77 -v
|
44 |
|
|
* g77 version 0.5.23
|
45 |
|
|
* Driving: g77 -v -c -xf77-version /dev/null -xnone
|
46 |
|
|
* Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1/specs
|
47 |
|
|
* gcc version 2.8.1
|
48 |
|
|
* /usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1/cpp -lang-c -v -undef
|
49 |
|
|
* -D__GNUC__=2 -D__GNUC_MINOR__=8 -D__ELF__ -D__unix__ -D__linux__
|
50 |
|
|
* -D__unix -D__linux -Asystem(posix) -D_LANGUAGE_FORTRAN -traditional
|
51 |
|
|
* -Di386 -Di686 -Asystem(unix) -Acpu(i386) -Amachine(i386) -D__i386__
|
52 |
|
|
* -D__i686__ -Asystem(unix) -Acpu(i386) -Amachine(i386) /dev/null
|
53 |
|
|
* /dev/null
|
54 |
|
|
* GNU CPP version 2.8.1 (i386 GNU/Linux with ELF)
|
55 |
|
|
* #include "..." search starts here:
|
56 |
|
|
* #include <...> search starts here:
|
57 |
|
|
* /usr/local/include
|
58 |
|
|
* /usr/i686-pc-linux-gnulibc1/include
|
59 |
|
|
* /usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1/include
|
60 |
|
|
* /usr/include
|
61 |
|
|
* End of search list.
|
62 |
|
|
* /usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1/f771 -fnull-version
|
63 |
|
|
* -quiet -dumpbase g77-version.f -version -fversion -o /tmp/cca24911.s
|
64 |
|
|
* /dev/null
|
65 |
|
|
* GNU F77 version 2.8.1 (i686-pc-linux-gnulibc1) compiled by GNU C version
|
66 |
|
|
* 2.8.1.
|
67 |
|
|
* GNU Fortran Front End version 0.5.23
|
68 |
|
|
* as -V -Qy -o /tmp/cca24911.o /tmp/cca24911.s
|
69 |
|
|
* GNU assembler version 2.8.1 (i486-linux), using BFD version 2.8.1
|
70 |
|
|
* ld -m elf_i386 -dynamic-linker /lib/ld-linux.so.1 -o /tmp/cca24911
|
71 |
|
|
* /tmp/cca24911.o /usr/lib/crt1.o /usr/lib/crti.o
|
72 |
|
|
* /usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1/crtbegin.o
|
73 |
|
|
* -L/usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1 -L/usr -lg2c -lm -lgcc
|
74 |
|
|
* -lc -lgcc /usr/lib/gcc-lib/i686-pc-linux-gnulibc1/2.8.1/crtend.o
|
75 |
|
|
* /usr/lib/crtn.o
|
76 |
|
|
* /tmp/cca24911
|
77 |
|
|
* __G77_LIBF77_VERSION__: 0.5.23
|
78 |
|
|
* @(#)LIBF77 VERSION 19970919
|
79 |
|
|
* __G77_LIBI77_VERSION__: 0.5.23
|
80 |
|
|
* @(#) LIBI77 VERSION pjw,dmg-mods 19980405
|
81 |
|
|
* __G77_LIBU77_VERSION__: 0.5.23
|
82 |
|
|
* @(#) LIBU77 VERSION 19970919
|
83 |
|
|
*
|
84 |
|
|
*
|
85 |
|
|
* Regards, Dieter.
|
86 |
|
|
* --
|
87 |
|
|
* Dieter Stüken, con terra GmbH, Münster
|
88 |
|
|
* stueken@conterra.de stueken@qgp.uni-muenster.de
|
89 |
|
|
* http://www.conterra.de/ http://qgp.uni-muenster.de/~stueken
|
90 |
|
|
* (0)251-980-2027 (0)251-83-334974
|