// RUN: %clang_cc1 -fsyntax-only -verify %s // PR5336 template struct isa_impl_cl { template static void isa(const FromCl &Val) { } }; template void isa(const Y &Val) { return isa_impl_cl::template isa(Val); } class Value; void f0(const Value &Val) { isa(Val); } // Implicit template-ids. template struct X0 { template void f1(); template void f2(U) { f1(); } }; void test_X0_int(X0 xi, float f) { xi.f2(f); } // Not template-id expressions, but they almost look like it. template struct Y { Y(const F&); }; template struct X { X(int, int); void f() { Y >(X(0, 0)); Y >(::X(0, 0)); } }; template struct X<3>;