]> gcc.gnu.org Git - gcc.git/blame - 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
CommitLineData
a5edb3fa
MP
1// PR c++/77747
2// { dg-do compile { target c++11 } }
3
4class X {
5public:
6 X() { }
7 X(int a) { }
8};
9
10class Y : public X { };
11
12class Z : public Y {
13 using X::X; // { dg-error "cannot inherit constructors from indirect base .X." }
14};
15
16int main()
17{
18 Z z{3}; // { dg-error "no matching" }
19}
This page took 0.637859 seconds and 5 git commands to generate.