1// PR c++/18445 2 3struct a 4{ 5 int what(); 6}; 7void g(void*); 8template<class T> 9void f() 10{ 11 a ex; 12 g(ex.what); // { dg-error "" } 13} 14