// PR c++/53164 // PR c++/105848 // A stricter version of fn-ptr3.C that verifies using f as a template // argument alone constitutes an odr-use. template void f(T) { T::fail; } // { dg-error "fail" } template struct A { // P not called }; template void wrap() { // P not called } template void g() { A a; // { dg-message "required from" } wrap(); // { dg-message "required from" } } int main() { g<0>(); }