// RUN: %clang_cc1 -fsyntax-only -verify %s template struct A; // expected-note 4{{template is declared here}} template struct B : A { }; // expected-error{{implicit instantiation of undefined template}} \ // expected-error{{implicit instantiation of undefined template 'A'}} template struct C : B { } ; // expected-note{{instantiation of template class}} template struct D : C { }; // expected-note{{instantiation of template class}} template struct E : D { }; // expected-note{{instantiation of template class}} template struct F : E { }; // expected-note{{instantiation of template class}} void f() { (void)sizeof(F); // expected-note{{instantiation of template class}} } typedef struct { } X; void g() { (void)sizeof(B); // expected-note{{in instantiation of template class 'B' requested here}} } template struct G : A, // expected-error{{implicit instantiation of undefined template 'A'}} A // expected-error{{implicit instantiation of undefined template 'A'}} { }; void h() { (void)sizeof(G); // expected-note{{in instantiation of template class 'G' requested here}} }