blob: 54ea56ae4e07bf4a6daa1e76c260ccc9b8c91997 [file] [log] [blame]
// PR c++/78771
// { dg-do compile { target c++17 } }
// ICE instantiating a deleted inherited ctor
struct Base
{
template <typename U> Base (U);
Base (int);
};
struct Derived;
struct Middle : Base
{
using Base::Base;
Middle (Derived);
};
struct Derived : Middle
{
using Middle::Middle;
};
Middle::Middle (Derived) : Middle (0) {}