ss-20000724 ice in c-decl.c

Krister Walfridsson cato@df.lth.se
Tue Jul 25 13:22:00 GMT 2000


The two-line (incorrect) "program" below generates an ice.

> cat bug.c 
typedef a b;
typedef b (*f)(void);
> /egcstmp/ss000724.i386/build/gcc/xgcc -B/egcstmp/ss000724.i386/build/gcc/ bug.c
bug.c:1: parse error before `b'
bug.c:1: warning: data definition has no type or storage class
bug.c:2: parse error before `*'
bug.c:2: `b' declared as function returning a function
bug.c:2: `b' redeclared as different kind of symbol
bug.c:1: previous declaration of `b'
bug.c:2: Tree check: expected function_decl, have var_decl
bug.c:2: Internal compiler error in pushdecl, at c-decl.c:2300
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.

This is on an a.out i386-unknown-netbsd1.5.
gcc version 2.96 20000724 (experimental)

   /Krister



More information about the Gcc-bugs mailing list