// PR c++/35240 // { dg-do compile } template struct A {}; template A foo(); void bar() { foo<1>(); }