c++/9212: Internal compiler error in grokdeclarator, at cp/decl.c:11052 [gcc 3.2]
Volker Reichelt
reichelt@igpm.rwth-aachen.de
Mon Jan 13 05:17:00 GMT 2003
The ICE and the strange error messages when you remove some arguments
of the constructor of LaoSyllable are fixed with the new parser in gcc 3.4.
Here's a cleaned-up testcase:
-----------------------------snip here----------------------------
struct A
{
enum E { e };
A(E);
};
struct B
{
enum F { f };
B(F);
};
struct C
{
C(A, B, A);
};
C c(A(A::e), B(B::f), A(A::e));
-----------------------------snip here----------------------------
With gcc 3.4 20030106 I now get:
bug.cc:18: error: cannot use `::' in parameter declaration
bug.cc:18: error: cannot use `::' in parameter declaration
bug.cc:18: error: cannot use `::' in parameter declaration
I don't know whether these messages are correct - I also get them with
other compilers, but I don't know why. Especially since "A a(A::e);"
seems to be valid.
I just leave that to the language experts.
Regards,
Volker
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9212
More information about the Gcc-bugs
mailing list