The following code produces an internal compiler error:

template< typename T >
struct wrap {
   enum class E { val };
};

Note that there is no problem supplying a fixed-base for a 'classic' enum, this
is purely an issue with the enum class keyword combination.

Tested under MinGW 4.4.0


-- 
           Summary: ICE with scoped enum inside a template
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: public at alisdairm dot net


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40633

Reply via email to