[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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91193 --- Comment #3 from Dmitry G. Dyachenko --- (In reply to Jakub Jelinek from comment #1) > Why do you think this is a regression? > /usr/src/gcc-test/obj/gcc/cc1.9 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 http://gcc.gnu.org/bugs.html> for instructions. > > I don't have anything older than r9. > > And slightly cleaner > typedef int a; > void a() a b; > also ICEs. You are right. Sounds like not a regression. Sorry
[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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91193 --- Comment #2 from Jakub Jelinek --- Actually, I have some 3.2 version and that ICEs too (branched in 2002): pr91193.c:2: `a' redeclared as different kind of symbol pr91193.c:1: previous declaration of `a' pr91193.c:2: confused by earlier errors, bailing out
[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
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91193 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek --- Why do you think this is a regression? /usr/src/gcc-test/obj/gcc/cc1.9 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 http://gcc.gnu.org/bugs.html> for instructions. I don't have anything older than r9. And slightly cleaner typedef int a; void a() a b; also ICEs.