This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/163: [parser] tree check: expected identifier_node, have type_decl in lookup_tag, at cp/decl.c:5319
- From: "Christian Ehrhardt" <ehrhardt at mathematik dot uni-ulm dot de>
- To: martin at loewis dot home dot cs dot tu-berlin dot de, gcc-gnats at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, Skullone at t-online dot de, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org
- Date: Sat, 21 Dec 2002 21:03:16 +0100
- Subject: Re: c++/163: [parser] tree check: expected identifier_node, have type_decl in lookup_tag, at cp/decl.c:5319
A few additional notes:
This is a duplicate of PR 8595, I'll close the latter an keep 163 open.
A minimal example is this, compile with g++:
struct X { X (); };
enum X::X() { }
The error only happens if we try redeclare the constructor, i.e
struct X { Y (); };
enum X::Y() { }
issues a proper error.
regards Christian
--
THAT'S ALL FOLKS!