]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/testsuite/g++.dg/template/error46.C
call.c (struct conversion_info): Rename 'from_type' to 'from'.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / template / error46.C
1 // PR c++/51230
2
3 template<int> struct A {};
4
5 template<int N> void foo(A<N>, A<N>); // { dg-message "template" }
6
7 void bar()
8 {
9 foo(A<0>(), A<1>()); // { dg-error "no matching" }
10 }
11 // { dg-message "deduced conflicting values" "" { target *-*-* } 9 }