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

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

Sometime between g:e320846fec00aaa3 and g:91577f0c8d955bc6,
this C code

long negate_v1_0;
unsigned long negate___trans_tmp_1;
int *negate_v_1;
void negate() {
  negate___trans_tmp_1 = negate_v1_0 ? ~negate_v1_0 : negate_v1_0;
  long i = 0;
  for (; i < negate___trans_tmp_1; i++)
    negate_v_1[i] = 0;
}

does this:

foundBugs $ ../results.20241028.asan.ubsan/bin/gcc -c -w -O2 bug1061.c
foundBugs $ ../results.20241030.asan.ubsan/bin/gcc -c -w -O2 bug1061.c
bitsobj.c: In function ‘calc1’:
bitsobj.c:846:53: error: type mismatch in binary expression
sizetype

long int

sizetype

_165 = _87 - _180;
during GIMPLE pass: ldist
bitsobj.c:846:53: internal compiler error: verify_gimple failed
0x2332d1d internal_error(char const*, ...)
       
/home/dcb40b/gcc/working/gcc/../../trunk/gcc/diagnostic-global-context.cc:518
0xf63832 verify_gimple_in_cfg(function*, bool, bool)
        /home/dcb40b/gcc/working/gcc/../../trunk/gcc/tree-cfg.cc:5682

Reply via email to