This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

ss-20000724 ice in c-decl.c


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]