1 2 3 4 5 6 7 8 9
// PR c++/51226 // { dg-do compile { target c++11 } } template<int> struct A // { dg-error "provided" } { enum E : int; }; template<> enum A<>::E : int {} // { dg-error "wrong number|expected" }