// PR c++/66596 // { dg-do compile { target c++14 } } struct U { void f() {} }; struct V { void f() {} }; template U t; template<> V t; template void g() { t.f(); } int main() { g(); }