This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/3004: g++ internal compiler error on "class Foo::Bar::Baz::Ptr"
- From: Craig Rodrigues <rodrigc at mediaone dot net>
- To: gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, tjic at permabit dot com, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Sun, 13 Jan 2002 17:02:30 -0500
- Subject: Re: c++/3004: g++ internal compiler error on "class Foo::Bar::Baz::Ptr"
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