blob: 0fbb5a8e553dfa428117cfdf3a84414017463f31 [file] [log] [blame]
// { dg-do assemble }
template <int I>
struct S {};
template <int J>
void foo(S<J + 2>); // { dg-warning "" } candidate template ignored
void bar()
{
foo(S<3>()); // { dg-error "" } no way to deduce J from this.
}