https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81164
Bug ID: 81164
Summary: [7/8 Regression] ICE in inherited_ctor_binfo_1 when
using virtual inheritance
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: egor.pugin at gmail dot com
Target Milestone: ---
struct A {};
struct B : virtual A {};
struct C : virtual A {};
struct D : B,C { using A::A; };
Code is not correct, but g++-7 and above gives an ICE.
main.cpp:4:8: internal compiler error: in inherited_ctor_binfo_1, at
cp/method.c:528
struct D : B,C { using A::A; };