// PR c++/83720 // { dg-lto-do assemble } #pragma GCC diagnostic ignored "-Wreturn-type" namespace b { class h { public: template h(ae af::*...) { [] {}; } }; class ai {}; template class c { public: template void aj(const char *, ag f) { h(f, int()); } }; } template class al; template class i { protected: static e g(const int) { } }; template class j; template class j : i { typedef i ap; public: static an aq(const int &ar, ao... as) { ap::g(ar)(as...); } }; template class al { template using ax = a; public: template , typename = ax> al(e); using ay = an (*)(const int &, ao...); ay az; }; template template al::al(e) { az = j::aq; } class k { public: k(al); } d([](b::ai) { struct be { virtual void f(){} }; struct bf; b::c().aj("", &be::f); });