diff options
Diffstat (limited to 'gcc/testsuite/g++.old-deja/g++.pt/expr2.C')
-rw-r--r-- | gcc/testsuite/g++.old-deja/g++.pt/expr2.C | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/expr2.C b/gcc/testsuite/g++.old-deja/g++.pt/expr2.C new file mode 100644 index 000000000..0dcc65f6f --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/expr2.C @@ -0,0 +1,13 @@ +// { 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" "candidate note" { target *-*-* } 11 } +} |