public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/3004: g++ internal compiler error on "class Foo::Bar::Baz::Ptr"
@ 2002-01-13 14:06 Craig Rodrigues
0 siblings, 0 replies; 2+ messages in thread
From: Craig Rodrigues @ 2002-01-13 14:06 UTC (permalink / raw)
To: nobody; +Cc: gcc-prs
The following reply was made to PR c++/3004; it has been noted by GNATS.
From: Craig Rodrigues <rodrigc@mediaone.net>
To: gcc-gnats@gcc.gnu.org, gcc-prs@gcc.gnu.org, tjic@permabit.com,
gcc-bugs@gcc.gnu.org, nobody@gcc.gnu.org
Cc:
Subject: Re: c++/3004: g++ internal compiler error on "class Foo::Bar::Baz::Ptr"
Date: Sun, 13 Jan 2002 17:02:30 -0500
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=3004
Compiling this code with gcc 3.1 in CVS yields:
a.cpp:12: tree check: expected identifier_node, have type_decl in
lookup_tag,
at cp/decl.c:5334
Please submit a full bug report
Compiling this code with the Digital Unix C++ compiler yields:
cxx: Error: a.cpp, line 12: class "Foo::Bar::Baz" has no tag member
named
"Ptr"
class Foo::Bar::Baz::Ptr a;
----------------------^
cxx: Info: 1 error detected in the compilation of "a.cpp".
Removing the "class" from in front of Foo::Bar::Baz::Ptr eliminates
the error message.
--
Craig Rodrigues
http://www.gis.net/~craigr
rodrigc@mediaone.net
^ permalink raw reply [flat|nested] 2+ messages in thread
* c++/3004: g++ internal compiler error on "class Foo::Bar::Baz::Ptr"
@ 2001-05-30 9:26 tjic
0 siblings, 0 replies; 2+ messages in thread
From: tjic @ 2001-05-30 9:26 UTC (permalink / raw)
To: gcc-gnats
>Number: 3004
>Category: c++
>Synopsis: g++ internal compiler error on "class Foo::Bar::Baz::Ptr"
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed May 30 09:26:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: Travis J.I. Corcoran
>Release: g++ 2.95.2
>Organization:
>Environment:
Linux 2.2.19
>Description:
run g++ on a short file, get an internal error.
foo.cpp:
namespace Foo{
namespace Bar {
class Baz {
public: typedef Baz * Ptr; }; } }
class Foo::Bar::Baz::Ptr;
g++ -c -o foo.o foo.cpp
>How-To-Repeat:
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-01-13 22:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-13 14:06 c++/3004: g++ internal compiler error on "class Foo::Bar::Baz::Ptr" Craig Rodrigues
-- strict thread matches above, loose matches on Subject: below --
2001-05-30 9:26 tjic
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).