blob: 3dc666821398d4df1cac4d0891f59c2194ac68b2 [file] [log] [blame]
// { dg-do assemble }
template <int I>
struct S {};
template <int J>
void foo(S<J + 2>); // { dg-message "note" }
void bar()
{
foo(S<3>()); // { dg-error "" } no way to deduce J from this.
// { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } .-1 }
}