summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.pt/expr2.C
blob: 0dcc65f6fac960d6710f8a4b0dbfa15f5921654d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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 }
}