URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Subversion Repositories openrisc
[/] [openrisc/] [tags/] [gnu-src/] [gcc-4.5.1/] [gcc-4.5.1-or32-1.0rc3/] [gcc/] [testsuite/] [g++.old-deja/] [g++.other/] [ptrmem5.C] - Rev 516
Compare with Previous | Blame | View Log
// { dg-do assemble }
// Bug: g++ doesn't see that A is a vbase of C.
// Submitted by Jason Merrill <jason@cygnus.com>
struct A {
int i;
void f ();
};
struct B: public A { };
struct C: public virtual B { };
void g ()
{
int C::*p = &A::i; // { dg-error "" } conversion from vbase
void (C::*fp)() = &A::f; // { dg-error "" } conversion from vbase
}