blob: de9307e89315664771d4f78a661b6a9115f7e49b [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" } */
};