This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
ss-20000724 ice in c-decl.c
- To: gcc-bugs at gcc dot gnu dot org
- Subject: ss-20000724 ice in c-decl.c
- From: Krister Walfridsson <cato at df dot lth dot se>
- Date: Tue, 25 Jul 2000 22:21:48 +0200 (MEST)
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