This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9212: Internal compiler error in grokdeclarator, at cp/decl.c:11052 [gcc 3.2]
- From: Volker Reichelt <reichelt at igpm dot rwth-aachen dot de>
- To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, jjamison at cs dot berkeley dot edu
- Date: Tue, 7 Jan 2003 12:52:20 +0100
- Subject: Re: c++/9212: Internal compiler error in grokdeclarator, at cp/decl.c:11052 [gcc 3.2]
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