]> gcc.gnu.org Git - gcc.git/blame - gcc/testsuite/g++.dg/cpp0x/inh-ctor15.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / inh-ctor15.C
CommitLineData
e252e96a
JM
1// Discussions on the core reflector indicate that not inheriting base copy
2// constructors was a deliberate choice.
3
4b2e63de 4// { dg-do compile { target c++11 } }
31f7f784 5// { dg-options -fno-new-inheriting-ctors }
e252e96a
JM
6
7struct A { A(int); };
8struct B: public A
9{
10 using A::A;
11};
12
13A a (42);
14
15B b1 (24); // inherited
16B b2 (a); // not inherited { dg-error "no match" }
This page took 4.916295 seconds and 5 git commands to generate.