blob: e9cb769e2cf55a7ed9df03a2bc049f4309b5e9da [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-message "overridden" } */
};
struct C : B
{
virtual C& foo(); /* { dg-error "conflicting return type" } */
};