summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/expr1.C
blob: 831876d01cbb634da8a980b4aa3c8e6b00bf0be3 (plain)
1
2
3
4
5
6
7
8
9
10
11
// { dg-do assemble  }

// Simplified from bug report by Trevor Taylor <ttaylor@powerup.com.au>

struct T {
  int operator()(int) { } // { dg-message "operator|candidate expects" }
};

int main() {
  T()(); // { dg-error "match" } no such operator
}