1// PR c++/57948
2
3struct Base {   };
4struct Derived : Base
5{
6  struct Derived2 : Base
7  {
8    struct ConvertibleToBothDerivedRef
9    {
10      operator Derived&();
11      operator Derived2&();
12      void bind_lvalue_to_conv_lvalue_ambig(ConvertibleToBothDerivedRef both)
13      {
14	Base &br1 = both; // { dg-error "ambiguous" }
15      }
16    };
17  };
18};
19