blob: c2d33bff4ffe5cd34c497d8fb49f8ec2bbaf3a30 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
// Discussions on the core reflector indicate that not inheriting base copy
// constructors was a deliberate choice.
// { dg-do compile { target c++11 } }
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" }
|