Fortran: Fix PR 47485.
[gcc.git] / gcc / testsuite / g++.dg / cpp0x / inh-ctor33.C
blob4e612907a4236edec15add00fd7ba0b74bc0091f
1 // PR c++/77747
2 // { dg-do compile { target c++11 } }
4 class X {
5 public:
6   X() { }
7   X(int a) { }
8 };
10 class Y : public X { };
12 class Z : public Y {
13   using X::X; // { dg-error ".X. is not a direct base of .Z." }
16 int main()
18   Z z{3}; // { dg-error "no matching" }