'__extension__ typdef long long int64' -> ICE

Ronald Oussoren ronald@xirion.nl
Mon Dec 14 02:04:00 GMT 1998


Hi,

Egcs 1.1 gives an internal compiler error on the following code when
started with the flags '-ansi -pedantic'. When compiled using only
'-ansi', I get a syntax error on the 'typdef' (note the typo). Without
the '__extension__' keyword I also get a syntax error.

BTW. The same bug exists in gcc 2.8.1 on solaris 2.6

Ronald Oussoren


$ cat t.c
__extension__
        typdef long long int64;

int64 x;

$ gcc -v --save-temps -i -ansi -pedantic -c t.c
Reading specs from
/opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.57/specs
gcc version egcs-2.91.57 19980901 (egcs-1.1 release)
 /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.57/cpp -lang-c89 -v
-undef
-D__GNUC__=2 -D__GNUC_MINOR__=91 -trigraphs -D__STRICT_ANSI__ -D__hppa__
-D__hp9
000s800__ -D__hp9000s800 -D__hp9k8__ -D__PWB__ -D__hpux__ -D__unix__
-D__hppa -D
__hp9000s800 -D__hp9k8 -D__PWB -D__hpux -D__unix -Asystem(unix)
-Asystem(hpux) -
Acpu(hppa) -Amachine(hppa) -pedantic -D__hp9000s700 -D_PA_RISC1_1 -i t.c
t.i
GNU CPP version egcs-2.91.57 19980901 (egcs-1.1 release) (hppa)
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /opt/gcc/hppa1.1-hp-hpux10.20/include
 /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.57/include
 /usr/include
End of search list.
 /opt/gcc/lib/gcc-lib/hppa1.1-hp-hpux10.20/egcs-2.91.57/cc1 t.i -quiet
-dumpbase
 t.c -ansi -pedantic -ansi -version -o t.s
GNU C version egcs-2.91.57 19980901 (egcs-1.1 release)
(hppa1.1-hp-hpux10.20) co
mpiled by GNU C version egcs-2.91.57 19980901 (egcs-1.1 release).
gcc: Internal compiler error: program cc1 got fatal signal 11





More information about the Gcc-bugs mailing list