Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / g++.dg / template / operator10.C
blobb17f49fa9f70e8a36d4ec8b43350b7334377f456
1 // PR c++/30535
3 struct A {};
5 template<A, typename T> int operator-(A, T); // { dg-error "not a valid type" }
7 int i = A() - 0; // { dg-error "no match" }