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

            Bug ID: 103024
           Summary: ICE in execute, at gimple-harden-conditionals.cc:424
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: aoliva at gcc dot gnu.org
  Target Milestone: ---

The following fails:

$ cat ice.ii
struct G4ErrorMatrix {
  G4ErrorMatrix(int);
  ~G4ErrorMatrix();
};
double PropagateError_charge;
void PropagateError() {
  G4ErrorMatrix transf(0);
  int field(PropagateError_charge && field);
}

$ g++ ice.ii -c -fnon-call-exceptions -fharden-compares -fsignaling-nans
during GIMPLE pass: hardcmp
ice.ii: In function ‘void PropagateError()’:
ice.ii:6:6: internal compiler error: in execute, at
gimple-harden-conditionals.cc:424
    6 | void PropagateError() {
      |      ^~~~~~~~~~~~~~
0x96aa89 execute
        /home/marxin/Programming/gcc/gcc/gimple-harden-conditionals.cc:424
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

Reply via email to