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

            Bug ID: 82191
           Summary: [8 Regression] ICE: Segmentation fault (in verify_use)
           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-alpha20170910 snapshot (r251952) ICEs when compiling the following
snippet w/ -O2, -O3, or -Ofast:

int
w5 (void);

int
cg (int *tc, int y2)
{
  int vf = 0;

  if (w5 () / ((y2 == 0) ? 1 : 2))
    tc = &vf;

  return *tc / vf;
}

% gcc-8.0.0-alpha20170910 -O2 -c apmo3uzv.c
during GIMPLE pass: pre
apmo3uzv.c: In function 'cg':
apmo3uzv.c:5:1: internal compiler error: Segmentation fault
 cg (int *tc, int y2)
 ^~

Reply via email to