// RUN: %clang_cc1 -fsyntax-only -verify %s template struct X1 { static void member() { T* x = 1; } // expected-error{{cannot initialize a variable of type 'int *' with an rvalue of type 'int'}} }; template struct instantiate { }; template struct X2 { typedef instantiate<&X1::member> i; // expected-note{{in instantiation of}} }; X2 x;