// RUN: %clang_cc1 -fsyntax-only -verify %s template struct A { enum E : T; E v = E{}; }; template enum A::E : T { e1 }; // expected-error {{template parameter list matching the non-templated nested type 'A' should be empty ('template<>')}} A a;