summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.other/expr1.C
blob: 87166f0ae2de1dd28789b698ef85806c60fbc832 (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 {			// { dg-message "candidate" }
  int operator()(int) { } // { dg-message "operator|candidate expects" }
};

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