1 2 3 4 5 6 7 8 9 10 11 12 13 14
// PR c++/53491 struct M { void pop(); }; void foo() { int result = 0; M m; result += m.pop(); // { dg-error "invalid operands|in evaluation" } }