c++/9173: ICE in grokdeclarator, at cp/decl.c:11304
reichelt@igpm.rwth-aachen.de
reichelt@igpm.rwth-aachen.de
Sun Jan 5 16:33:00 GMT 2003
Synopsis: ICE in grokdeclarator, at cp/decl.c:11304
State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Sun Jan 5 08:33:25 2003
State-Changed-Why:
Fixed in gcc 3.4 with the new parser.
The code crashes the compiler at least since gcc 2.95.x
(the "confused by earlier errors, bailing out" messages
in release versions are just hidden ICEs after a suitable
error message).
With the new parser we get:
PR9173.cc:9: error: variable or field `foo' declared void
PR9173.cc:9: error: expected function-definition
PR9173.cc:12: error: variable or field `foo' declared void
PR9173.cc:12: error: `int B::foo' is not a static member of `class B'
PR9173.cc:12: error: expected primary-expression
PR9173.cc:12: error: `e' is not a member of `class A'
PR9173.cc:12: error: initializer list being treated as compound expression
PR9173.cc:12: error: expected `,' or `;'
I'll add this to the testsuite soon.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9173
More information about the Gcc-prs
mailing list