// RUN: %clang_cc1 -fsyntax-only -verify %s template class X> struct A; // expected-note 2{{previous template template parameter is here}} template class X> struct B; // expected-note{{previous template template parameter is here}} template class X> struct C; // expected-note{{previous non-type template parameter with type 'int' is here}} template struct X; // expected-note{{too few template parameters in template template argument}} template struct Y; // expected-note{{template parameter has a different kind in template argument}} template struct Ylong; // expected-note{{template non-type parameter has a different type 'long' in template argument}} namespace N { template struct Z; } template struct TooMany; // expected-note{{too many template parameters in template template argument}} A *a1; A *a2; A< ::N::Z> *a3; A *a4; // expected-error{{template template argument has different template parameters than its corresponding template template parameter}} A *a5; // expected-error{{template template argument has different template parameters than its corresponding template template parameter}} B *a6; // expected-error{{template template argument has different template parameters than its corresponding template template parameter}} C *a7; C *a8; // expected-error{{template template argument has different template parameters than its corresponding template template parameter}} template void f(int); A *a9; // expected-error{{must be a class template}} // FIXME: The code below is ill-formed, because of the evil digraph '<:'. // We should provide a much better error message than we currently do. // A<::N::Z> *a10;