This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]