// RUN: clang-cc -fsyntax-only -verify %s struct NonDefaultConstructible { NonDefaultConstructible(const NonDefaultConstructible&); }; template struct X { static T member; }; template T X::member; // expected-error{{no matching constructor}} // Okay; this is a declaration, not a definition. template<> NonDefaultConstructible X::member; NonDefaultConstructible &test(bool b) { return b? X::member // expected-note{{instantiation}} : X::member; }