blob: 828b5b8f1a62b5e957e692071936cb0175b2b75d [file] [log] [blame]
/* 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" } */
};