public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/9173: ICE in grokdeclarator, at cp/decl.c:11304
@ 2003-01-05 16:33 reichelt
  0 siblings, 0 replies; 2+ messages in thread
From: reichelt @ 2003-01-05 16:33 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, wwieser

Synopsis: ICE in grokdeclarator, at cp/decl.c:11304

State-Changed-From-To: open->closed
State-Changed-By: reichelt
State-Changed-When: Sun Jan  5 08:33:25 2003
State-Changed-Why:
    Fixed in gcc 3.4 with the new parser.
    
    The code crashes the compiler at least since gcc 2.95.x
    (the "confused by earlier errors, bailing out" messages
    in release versions are just hidden ICEs after a suitable
    error message).
    
    With the new parser we get:
    PR9173.cc:9: error: variable or field `foo' declared void
    PR9173.cc:9: error: expected function-definition
    PR9173.cc:12: error: variable or field `foo' declared void
    PR9173.cc:12: error: `int B::foo' is not a static member of `class B'
    PR9173.cc:12: error: expected primary-expression
    PR9173.cc:12: error: `e' is not a member of `class A'
    PR9173.cc:12: error: initializer list being treated as compound expression
    PR9173.cc:12: error: expected `,' or `;'
    
    I'll add this to the testsuite soon.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9173


^ permalink raw reply	[flat|nested] 2+ messages in thread

* c++/9173: ICE in grokdeclarator, at cp/decl.c:11304
@ 2003-01-04 20:46 wwieser
  0 siblings, 0 replies; 2+ messages in thread
From: wwieser @ 2003-01-04 20:46 UTC (permalink / raw)
  To: gcc-gnats


>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:


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-01-05 16:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-05 16:33 c++/9173: ICE in grokdeclarator, at cp/decl.c:11304 reichelt
  -- strict thread matches above, loose matches on Subject: below --
2003-01-04 20:46 wwieser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).