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

            Bug ID: 104310
           Summary: ice in forwprop
           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: ---

For this C code:

$ more bug792.c
int i_5;
unsigned int func_3_ui_15;
void func_3() 
{ 
        (func_3_ui_15 = 0 >= 0) / i_5 << 1; 
}

compiled by recent gcc trunk, does this:

$ /home/dcb/gcc/results.20220129//bin/gcc -c -O1 bug792.c
bug792.c: In function ‘func_3’:
bug792.c:6:1: error: bogus comparison result type
    6 | }
      | ^
unsigned int
_4 = i_5.1_2 == 1;
during GIMPLE pass: fre
bug792.c:6:1: internal compiler error: verify_gimple failed
0xde241a verify_gimple_in_cfg(function*, bool)
        ../../trunk.git/gcc/tree-cfg.cc:5559

The bug first seems to occur sometime between git hash b51fb28ed294cdf1
and f6f2d6cfec1c2fe9, a range of 28 commits.

Reply via email to