This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/9173: ICE in grokdeclarator, at cp/decl.c:11304
- From: wwieser at gmx dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 4 Jan 2003 20:43:16 -0000
- Subject: c++/9173: ICE in grokdeclarator, at cp/decl.c:11304
- Reply-to: wwieser at gmx dot de
>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: