aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/template/error46.C
blob: 6cb085a182cfac40d61f25e9dd5efd1a1bf1a34a (plain)
1
2
3
4
5
6
7
8
9
10
11
// PR c++/51230

template<int> struct A {}; 

template<int N> void foo(A<N>, A<N>); // { dg-message "template" }

void bar()
{
  foo(A<0>(), A<1>()); // { dg-error "no matching" }
}
// { dg-message "candidate|parameter 'N' ('0' and '1')" "" { target *-*-* } 9 }