blob: 4e612907a4236edec15add00fd7ba0b74bc0091f [file] [log] [blame]
// PR c++/77747
// { dg-do compile { target c++11 } }
class X {
public:
X() { }
X(int a) { }
};
class Y : public X { };
class Z : public Y {
using X::X; // { dg-error ".X. is not a direct base of .Z." }
};
int main()
{
Z z{3}; // { dg-error "no matching" }
}