aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/expr1.C
blob: fece8d48c29f1b1577ad63dbb69c0d19e49a7334 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Build don't link:

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

struct T {
  int operator()(int) { } // ERROR - candidate
};

int main() {
  T()(); // ERROR - no such operator
}