// PR c++/71495 // { dg-do compile { target c++11 } } struct A; template void f(T); // { dg-bogus "initializing" } template T&& declval(); struct B { template static decltype(f(declval())) g(int); template void g(...); } b; int main() { b.g(42); }