1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 template<typename T>
3 struct X1 {
4   static void member() { T* x = 1; } // expected-error{{cannot initialize a variable of type 'int *' with an rvalue of type 'int'}}
5 };
6 
7 template<void(*)()> struct instantiate { };
8 
9 template<typename T>
10 struct X2 {
11   typedef instantiate<&X1<int>::member> i; // expected-note{{in instantiation of}}
12 };
13 
14 X2<int> x;
15