[Bug c++/102988] New: ice during GIMPLE pass: hardcbr

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Thu Oct 28 16:05:51 GMT 2021


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

            Bug ID: 102988
           Summary: ice during GIMPLE pass: hardcbr
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: dcb314 at hotmail dot com
  Target Milestone: ---

Created attachment 51694
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51694&action=edit
gzipped C++ source code

The attached C++ code, with compiler flags -c -w -std=c++14 -w -O1
-fharden-conditional-branches, does this:

/home/dcb35/rpmbuild/BUILD/ucommon-7.0.0/commoncpp/persist.cpp:254:19: error:
RESULT_DECL should be read only when DECL_BY_REFERENCE is set
  254 | const std::string PersistEngine::readClass() throw(PersistException)
      |                   ^~~~~~~~~~~~~
while verifying SSA_NAME className_96 in statement
__asm__("" : "=g" className_96 : "0" className_14(D));
during GIMPLE pass: hardcbr
/home/dcb35/rpmbuild/BUILD/ucommon-7.0.0/commoncpp/persist.cpp:254:19: internal
compiler error: verify_ssa failed

I will have my usual go at reducing the code.


More information about the Gcc-bugs mailing list