]> gcc.gnu.org Git - gcc.git/blob - gcc/testsuite/g++.dg/cpp0x/inh-ctor33.C
PR c++/92590 - wrong handling of inherited default ctor.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / inh-ctor33.C
1 // PR c++/77747
2 // { dg-do compile { target c++11 } }
3
4 class X {
5 public:
6 X() { }
7 X(int a) { }
8 };
9
10 class Y : public X { };
11
12 class Z : public Y {
13 using X::X; // { dg-error "cannot inherit constructors from indirect base .X." }
14 };
15
16 int main()
17 {
18 Z z{3}; // { dg-error "no matching" }
19 }
This page took 0.038494 seconds and 5 git commands to generate.