blob: b723b1188dbb1509761d76d986ea2e71d6cfe1f5 [file] [log] [blame]
// PR c++/78771
// { dg-do compile { target c++11 } }
// { dg-additional-options "-fno-new-inheriting-ctors" }
// 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) {}