OSDN Git Service

PR c++/54858
[pf3gnuchains/gcc-fork.git] / gcc / testsuite / g++.dg / template / operator10.C
1 // PR c++/30535
2 // { dg-prune-output "note" }
3
4 struct A {};
5
6 template<A, typename T> int operator-(A, T); // { dg-error "not a valid type" }
7
8 int i = A() - 0; // { dg-error "no match" }