Debian Codegraph @

gcc/testsuite/g++.dg/cpp0x/inh-ctor33.C

raw
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 ".X. is not a direct base of .Z." }
14 };
15
16 int main()
17 {
18 Z z{3}; // { dg-error "no matching" }
19 }