c++/163: [parser] tree check: expected identifier_node, have type_decl in lookup_tag, at cp/decl.c:5319
Christian Ehrhardt
ehrhardt@mathematik.uni-ulm.de
Sat Dec 21 12:06:00 GMT 2002
The following reply was made to PR c++/163; it has been noted by GNATS.
From: "Christian Ehrhardt" <ehrhardt@mathematik.uni-ulm.de>
To: martin@loewis.home.cs.tu-berlin.de, gcc-gnats@gcc.gnu.org,
gcc-prs@gcc.gnu.org, Skullone@t-online.de, gcc-bugs@gcc.gnu.org,
nobody@gcc.gnu.org
Cc:
Subject: Re: c++/163: [parser] tree check: expected identifier_node, have type_decl in lookup_tag, at cp/decl.c:5319
Date: Sat, 21 Dec 2002 21:03:16 +0100
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!
More information about the Gcc-prs
mailing list