]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/implicit15.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / implicit15.C
CommitLineData
208a5329
JJ
1// PR c++/88122
2// { dg-do compile { target c++11 } }
3
4struct A {
5 A (...); // { dg-message "candidate" }
6 A (); // { dg-message "candidate" }
7};
8struct B : A {
9 using A::A; // { dg-error "is ambiguous" }
10 // { dg-message "is implicitly deleted because the default definition would be ill-formed" "" { target *-*-* } .-1 }
11} b{3}; // { dg-error "use of deleted function" }
This page took 0.893969 seconds and 5 git commands to generate.