URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Subversion Repositories openrisc_2011-10-31
[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [g++.old-deja/] [g++.jason/] [precedence.C] - Rev 154
Compare with Previous | Blame | View Log
// { dg-do assemble }
// Bug: g++ groups ->* before casts.
// PRMS Id: 4484 (bug 4)
struct A { };
struct B : public A { void f (); };
void g ()
{
A* ap = new B;
void (B::*p)() = &B::f;
((B*)ap->*p)(); // { dg-bogus "" } incorrect precedence
}