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

            Bug ID: 83521
           Summary: [8 Regression] ICE: verify_gimple failed (error:
                    invalid operand in unary operation)
           Product: gcc
           Version: 8.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc-8.0.0-alpha20171217 snapshot (r255766) ICEs when compiling the following
snippet w/ -O1 -fno-tree-forwprop:

int
tq (unsigned int ls, int gj)
{
  int *iz = (int *)&ls;

  return (gj == 0) ? gj : *iz;
}

% gcc-8.0.0-alpha20171217 -O1 -fno-tree-forwprop -c wslnmfya.c
wslnmfya.c: In function 'tq':
wslnmfya.c:2:1: error: invalid operand in unary operation
 tq (unsigned int ls, int gj)
 ^~
iftmp.0_1 = (int) (int) _6;
during GIMPLE pass: phiopt
wslnmfya.c:2:1: internal compiler error: verify_gimple failed
0xd71686 verify_gimple_in_cfg(function*, bool)
       
/var/tmp/portage/sys-devel/gcc-8.0.0_alpha20171217/work/gcc-8-20171217/gcc/tree-cfg.c:5537
0xc6625f execute_function_todo
       
/var/tmp/portage/sys-devel/gcc-8.0.0_alpha20171217/work/gcc-8-20171217/gcc/passes.c:1994
0xc66cae execute_todo
       
/var/tmp/portage/sys-devel/gcc-8.0.0_alpha20171217/work/gcc-8-20171217/gcc/passes.c:2048

Reply via email to