blob: 5fa46391f16fdcc5618fbf6976254d5a66902317 [file] [log] [blame]
// { 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));
}