This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/81164] New: [7/8 Regression] ICE in inherited_ctor_binfo_1 when using virtual inheritance


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; };

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]