blob: 0f4bdafb8a48a21d8075aff3c14e8eb7e99616a7 (
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 }
|