blob: a0b518c19d34f99fb910684d25410c0eb30ba8ef [file] [log] [blame]
// Discussions on the core reflector indicate that not inheriting base copy
// constructors was a deliberate choice.
// { dg-do compile { target c++11 } }
// { dg-options -fno-new-inheriting-ctors }
struct A { A(int); };
struct B: public A
{
using A::A;
};
A a (42);
B b1 (24); // inherited
B b2 (a); // not inherited { dg-error "no match" }