https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104648

            Bug ID: 104648
           Summary: [12 Regression] ICE in cgraphunit_cc_finalize, at
                    cgraphunit.cc:2540
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Started with r12 :
(gcc configured with --enable-checking=yes)


$ cat z1.cc
struct A {};
struct B : virtual A
{
  B () {};
  B () {};
};


$ g++-12-20220220 -c z1.cc -fvtable-verify=preinit
z1.cc:5:3: error: 'B::B()' cannot be overloaded with 'B::B()'
    5 |   B () {};
      |   ^
z1.cc:4:3: note: previous declaration 'B::B()'
    4 |   B () {};
      |   ^
internal compiler error: in cgraphunit_cc_finalize, at cgraphunit.cc:2540
0x10cbf86 toplev::finalize()
        ../../gcc/toplev.cc:2365
g++: internal compiler error: Segmentation fault signal terminated program
cc1plus

Reply via email to