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)); }