Mercurial > hg > CbC > CbC_gcc
annotate gcc/testsuite/g++.dg/cpp0x/implicit15.C @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | |
children |
rev | line source |
---|---|
145 | 1 // PR c++/88122 |
2 // { dg-do compile { target c++11 } } | |
3 | |
4 struct A { | |
5 A (...); // { dg-message "candidate" } | |
6 A (); // { dg-message "candidate" } | |
7 }; | |
8 struct 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" } |