// RUN: %clang_cc1 -fsyntax-only -verify %s template struct X0 { void f(T&); struct Inner; static T static_var; }; template void X0::f(T& t) { t = 1; // expected-error{{incompatible integer to pointer conversion}} } template struct X0::Inner { T member; }; template T X0::static_var = 1; // expected-error{{cannot initialize}} extern template struct X0; template struct X0; // expected-note 2{{instantiation}} template struct X0; // expected-note 4{{explicit instantiation definition is here}} extern template void X0::f(int&); // expected-error{{follows explicit instantiation definition}} extern template struct X0::Inner; // expected-error{{follows explicit instantiation definition}} extern template int X0::static_var; // expected-error{{follows explicit instantiation definition}} extern template struct X0; // expected-error{{follows explicit instantiation definition}}