[Bug c/91193] [8/9/10 regression] ICE on invalid: tree check: expected class ‘type’, have ‘declaration’ (function_decl) in grokdeclarator, at c/c-decl.c:5956
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jul 18 07:16:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91193
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Why do you think this is a regression?
/usr/src/gcc-test/obj/gcc/cc1.90000 pr91193.c
a
pr91193.c:2: error: ‘a’ redeclared as different kind of symbol
pr91193.c:1: error: previous declaration of ‘a’ was here
pr91193.c: In function ‘a’:
pr91193.c:2: internal compiler error: tree check: expected class ‘type’, have
‘declaration’ (function_decl) in grokdeclarator, at c-decl.c:3788
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
I don't have anything older than r90000.
And slightly cleaner
typedef int a;
void a() a b;
also ICEs.
More information about the Gcc-bugs
mailing list