This is the mail archive of the gcc-prs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: c++/9212: Internal compiler error in grokdeclarator, at cp/decl.c:11052 [gcc 3.2]


The following reply was made to PR c++/9212; it has been noted by GNATS.

From: Volker Reichelt <reichelt@igpm.rwth-aachen.de>
To: gcc-gnats@gcc.gnu.org, gcc-bugs@gcc.gnu.org, jjamison@cs.berkeley.edu
Cc:  
Subject: Re: c++/9212: Internal compiler error in grokdeclarator, at cp/decl.c:11052 [gcc 3.2]
Date: Tue, 7 Jan 2003 12:52:20 +0100

 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
 
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]