// PR c++/51226 // { dg-do compile { target c++11 } } template struct A // { dg-error "provided" } { enum E : int; }; template<> enum A<>::E : int {} // { dg-error "wrong number|expected" }