summaryrefslogtreecommitdiff
path: root/gcc/testsuite/g++.old-deja/g++.jason/parse9.C
blob: 5fa46391f16fdcc5618fbf6976254d5a66902317 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// { dg-do run  }
// PRMS Id: 5720
// Bug: the extra set of parens confuses the expr/declarator disambiguation.

class Fu
{
  int val;
public:
  Fu(int i) : val(i) { }
  void print() { }
};

int main(int argc, char * argv[])
{
  int * i = &argc;

  Fu((*i)).print();		// { dg-bogus "" } 
  Fu((*j));
}