blob: 16df8bcc3067bd83af2224a146c099e6146ff67c [file] [log] [blame]
// PR c++/39866
// { dg-do compile { target c++11 } }
struct A {
A& operator=(const A&) = delete; // { dg-bogus "" }
void operator=(int) {} // { dg-message "" }
void operator=(char) {} // { dg-message "" }
};
struct B {};
int main()
{
A a;
a = B(); // { dg-error "no match" }
a = 1.0; // { dg-error "ambiguous" }
}