blob: a9d9d699cf0e6da1d11cd98e2fda8bc5cb63c65a [file] [log] [blame]
// PR c++/57948
struct Base { };
struct Derived : Base
{
struct Derived2 : Base
{
struct ConvertibleToBothDerivedRef
{
operator Derived&();
operator Derived2&();
void bind_lvalue_to_conv_lvalue_ambig(ConvertibleToBothDerivedRef both)
{
Base &br1 = both; // { dg-error "ambiguous" }
}
};
};
};