1 // RUN: %clang_cc1 -fsyntax-only -std=c++11 -verify %s 2 3 class Class_With_Destructor { ~Class_With_Destructor()4 ~Class_With_Destructor() { } 5 }; 6 7 template <class T> 8 class Base { }; 9 10 template<class T, // Should be angle bracket instead of comma 11 class Derived : public Base<T> { // expected-error{{'Derived' cannot be defined in a type specifier}} 12 Class_With_Destructor member; 13 }; // expected-error{{a non-type template parameter cannot have type 'class Derived'}} 14 // expected-error@-1{{expected ',' or '>' in template-parameter-list}} 15 // expected-warning@-2{{declaration does not declare anything}} 16 17