[Bug c++/66781] New: "confused by earlier errors, bailing out" with wrong enum within class

deni_ at hotmail dot fr gcc-bugzilla@gcc.gnu.org
Mon Jul 6 17:40:00 GMT 2015


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;
};
---------



More information about the Gcc-bugs mailing list