Debian Codegraph @

gcc/testsuite/g++.old-deja/g++.pt/expr2.C

raw
1 // { dg-do assemble }
2
3 template <int I>
4 struct S {};
5
6 template <int J>
7 void foo(S<J + 2>); // { dg-message "note" }
8
9 void bar()
10 {
11 foo(S<3>()); // { dg-error "" } no way to deduce J from this.
12 // { dg-message "(candidate|deduce template parameter)" "candidate note" { target *-*-* } .-1 }
13 }