1 2 3 4 5 6 7 8 9 10 11 12 13 14
// { dg-do assemble } // GROUPS passed operators struct A { int x; }; int operator()(A x,float y) { // MUST be a member function// { dg-error "" } .* return 1; } int main() { A x; x(1.0); // { dg-error "" } no match for call }