aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/g++.dg/parse/crash60.C
blob: e515396771ec8071ea7848ed93ef39bc0b525eb2 (plain)
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" }
}