c++/9173: ICE in grokdeclarator, at cp/decl.c:11304
wwieser@gmx.de
wwieser@gmx.de
Sat Jan 4 20:46:00 GMT 2003
>Number: 9173
>Category: c++
>Synopsis: ICE in grokdeclarator, at cp/decl.c:11304
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 04 12:46:01 PST 2003
>Closed-Date:
>Last-Modified:
>Originator: wwieser@gmx.de
>Release: gcc (GCC) 3.3 20030104 (prerelease)
>Organization:
>Environment:
Linux i686
>Description:
Compiling the following (illegal) code snipped...
----------<crashme.cc>-----------
class A
{
enum E
{ ee=0 };
};
class B
{
static void foo(int x,A::e);
};
void B::foo(int x,A::e)
{ }
------------------------
...and you get
----------<compiler outpot>----------
crashme.cc:9: error: no type `e' in `A'
crashme.cc:8: warning: all member functions in class `B' are private
crashme.cc:12: error: no type `e' in `A'
crashme.cc:13: internal compiler error: in grokdeclarator, at cp/decl.c:11304
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
---------------------------
This seems to be the minimal test case.
I can't strip it down any more.
>How-To-Repeat:
See above.
>Fix:
Don't know.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the Gcc-bugs
mailing list