]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/inh-ctor11.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / inh-ctor11.C
1 // { dg-do compile { target c++11 } }
2 // { dg-options -fno-new-inheriting-ctors }
3
4 struct A
5 {
6 A(int, ...); // { dg-message "declared here" }
7 };
8
9 struct B: A
10 {
11 using A::A; // { dg-warning "ellipsis" }
12 };
13
14 B b1(42);
15 B b2(42, 1.0); // { dg-error "no match" }
This page took 0.0365220000000001 seconds and 5 git commands to generate.