PR c++/86728 - C variadic generic lambda.
[official-gcc.git] / gcc / testsuite / g++.dg / template / error50.C
blobf85470bf4d1b2f404a6be4dbae028aa71a70f974
1 // PR c++/57327
3 template<class T>
4 struct A {};
6 template<class T>
7 void f(A<T>&) {}
9 struct B : A<long> {};
11 struct C : A<char> {};
13 struct D : B, C {};
15 int main()
17   D d;
18   f(d);  // { dg-error "no matching" }
19 }        // { dg-message "'A<T>' is an ambiguous base" "" { target *-*-* } .-1 }