// RUN: %clang_cc1 -std=c++11 -verify %s template struct X { void f(int); void f(...); static int n; }; template using A = T; // These definitions are OK, X...> is equivalent to X // so this defines the member of the primary template. template void X...>::f(int) {} // expected-error {{undeclared}} template int X...>::n = 0; // expected-error {{undeclared}} struct Y {}; void f(Y); void g() { // OK, substitution succeeds. X().f(0); X::n = 1; // Error, substitution fails; this should not be treated as a SFINAE-able // condition, so we don't select X::f(...). X().f(0); // expected-note {{instantiation of}} X::n = 1; // expected-note {{instantiation of}} }