blob: 448b022905fc109bc43617f8cd032ce8cb1d72ed (
plain)
1
2
3
4
5
6
7
8
|
// PR c++/30535
// { dg-prune-output "note" }
struct A {};
template<A, typename T> int operator-(A, T); // { dg-error "not a valid type" }
int i = A() - 0; // { dg-error "no match" }
|