2003-12-26 Guilhem Lavaux <guilhem@kaffe.org>
[official-gcc.git] / gcc / testsuite / g++.old-deja / g++.jason / parse9.C
blobc0752f785e6462a05bf0233dd1cff0f9752f7edb
1 // { dg-do run  }
2 // PRMS Id: 5720
3 // Bug: the extra set of parens confuses the expr/declarator disambiguation.
5 class Fu
7   int val;
8 public:
9   Fu(int i) : val(i) { };
10   void print() { }
13 int main(int argc, char * argv[])
15   int * i = &argc;
17   Fu((*i)).print();             // { dg-bogus "" } 
18   Fu((*j));