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++.dg/] [inherit/] [covariant16.C] - Rev 308
Go to most recent revision | Compare with Previous | Blame | View Log
/* PR c++/28253 This used to ICE. */
/* { dg-do "compile" } */
struct A
{
virtual A* foo();
};
struct B : virtual A
{
virtual B* foo(); /* { dg-error "overriding" } */
};
struct C : B
{
virtual C& foo(); /* { dg-error "conflicting return type" } */
};
Go to most recent revision | Compare with Previous | Blame | View Log