]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/defaulted14.C
call.c (struct conversion_info): Rename 'from_type' to 'from'.
[thirdparty/gcc.git] / gcc / testsuite / g++.dg / cpp0x / defaulted14.C
CommitLineData
f0673555 1// PR c++/39866
4b2e63de 2// { dg-do compile { target c++11 } }
f0673555
JM
3
4struct A {
5 A& operator=(const A&) = delete; // { dg-bogus "" }
6
7 void operator=(int) {} // { dg-message "" }
8 void operator=(char) {} // { dg-message "" }
9};
10
11struct B {};
12
13int main()
14{
15 A a;
16 a = B(); // { dg-error "no match" }
17 a = 1.0; // { dg-error "ambiguous" }
18}