https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66781
Bug ID: 66781 Summary: "confused by earlier errors, bailing out" with wrong enum within class Product: gcc Version: 5.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: deni_ at hotmail dot fr Target Milestone: --- The following code makes the compiler crash with gcc5.1 and 6,0 at least. Removing `public' still makes the compiler crash, but leads to more error messages. --------- class foo { public: enum foo::bar{}; foo::bar baz; }; ---------