Index: test/SemaTemplate/template-id-expr.cpp =================================================================== --- test/SemaTemplate/template-id-expr.cpp +++ test/SemaTemplate/template-id-expr.cpp @@ -1,4 +1,6 @@ // RUN: %clang_cc1 -fsyntax-only -verify %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++03 %s +// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s // PR5336 template struct isa_impl_cl { @@ -104,5 +106,8 @@ template<> class D; // expected-error {{cannot specialize a template template parameter}} friend class D; // expected-error {{type alias template 'D' cannot be referenced with a class specifier}} }; -template using D = int; // expected-note {{declared here}} expected-warning {{extension}} +#if __cplusplus <= 199711L +// expected-warning@+2 {{extension}} +#endif +template using D = int; // expected-note {{declared here}} E ed; // expected-note {{instantiation of}}