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

            Bug ID: 83605
           Summary: [8 Regression] ICE: verify_gimple failed (error: dead
                    STMT in EH table)
           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-alpha20171224 snapshot (r255993) ICEs when compiling the following
snippet w/ -O1 (-O2, -O3, -Ofast) -ftrapv -fexceptions -fnon-call-exceptions:

int qc;

int
c4 (int dj)
{
  int sl = qc;
    {
      int on;
      int *v1 = (dj == 0) ? &on : &sl;

      for (qc = 0; qc < 2; ++qc)
        on = (dj + sl) < qc;

      return *v1;
    }
}

% gcc-8.0.0-alpha20171224 -O1 -ftrapv -fexceptions -fnon-call-exceptions -c
wk4fhx3d.c
wk4fhx3d.c: In function 'c4':
wk4fhx3d.c:4:1: error: dead STMT in EH table
 c4 (int dj)
 ^~
_15 = qc.0_1 + dj_10(D);
during GIMPLE pass: slsr
wk4fhx3d.c:4:1: internal compiler error: verify_gimple failed
0xd8251f verify_gimple_in_cfg(function*, bool)
       
/var/tmp/portage/sys-devel/gcc-8.0.0_alpha20171224/work/gcc-8-20171224/gcc/tree-cfg.c:5569
0xc7490f execute_function_todo
       
/var/tmp/portage/sys-devel/gcc-8.0.0_alpha20171224/work/gcc-8-20171224/gcc/passes.c:1994
0xc7536e execute_todo
       
/var/tmp/portage/sys-devel/gcc-8.0.0_alpha20171224/work/gcc-8-20171224/gcc/passes.c:2048

Reply via email to