[Bug c++/40633] New: ICE with scoped enum inside a template

public at alisdairm dot net gcc-bugzilla@gcc.gnu.org
Fri Jul 3 11:42:00 GMT 2009


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



More information about the Gcc-bugs mailing list