// PR c++/69753 // { dg-do compile { target c++11 } } struct B { template void bfn (); }; template constexpr int x(T) { return 42; } template struct C { template void cfn (); }; template struct A { static B fn(int); template static B ft(U); void g() { auto b = this->fn(42); b.bfn(); auto b2 = this->ft(42); b2.bfn(); auto c = C(); c.cfn(); } };