]> gcc.gnu.org Git - gcc.git/blobdiff - gcc/testsuite/g++.dg/cpp0x/inh-ctor5.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / inh-ctor5.C
index 673b6380504067d68ff4484b8b2b9a387a2fe6c1..d0038c16a142f6dbb3d7bda2efc3e11def0f32f9 100644 (file)
@@ -6,13 +6,13 @@ struct B1 {
 struct B2 {
   B2(double) { }
 };
-struct D1 : B1 {
+struct D1 : B1 {    // { dg-error "no match" }
   using B1::B1;            // implicitly declares D1(int)
   int x;
 };
 void test() {
   D1 d(6);         // OK: d.x is not initialized
-  D1 e;                    // { dg-error "no match" } D1 has no default constructor
+  D1 e;                    // { dg-error "deleted" } D1 has no default constructor
 }
 struct D2 : B2 {
   using B2::B2;            // { dg-error "B1::B1" }
This page took 0.030535 seconds and 5 git commands to generate.