// PR c++/116276 // { dg-do compile { target c++20 } } template struct Base1 { }; template struct Base2 { }; template struct Derived : public Base1, Base2 { using Base1::Base1; using Base2::Base2; }; Derived d; template struct Derived2 : public Base1, Base2 { using Base1::Base1::Base1; using Base2::Base2::Base2; Derived2(); }; Derived2 d2;