URL
https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk
Subversion Repositories openrisc_me
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [parse9.C] - Rev 305
Compare with Previous | Blame | View Log
// { 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));
}