// RUN: %clang_cc1 -fsyntax-only -verify %s template int f(int); // expected-note 2{{candidate}} template int f(int); // expected-note 2{{candidate}} int i1 = f<1>(0); // expected-error{{ambiguous}} int i2 = f<1000>(0); // expected-error{{ambiguous}} namespace PR6707 { template struct X { }; template void f(X); void g(X x) { f(x); } static const unsigned char ten = 10; template void f2(X, X); void g2() { f2(X(), X()); } }