// PR c++/67835 // { dg-do compile { target c++14 } } template auto g(Tag tag, T x) { return f(tag, x); } namespace abc { struct tag {}; struct A {}; template auto f(tag, T x) { return x; } } int main() { g(abc::tag(), abc::A()); return 0; }