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

            Bug ID: 89209
           Summary: [9 Regression] ICE in build_ref_for_model, at
                    tree-sra.c:1791
           Product: gcc
           Version: 9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Changed between 20180722 and 20180805 :


$ cat z1.c
struct S {
  short a, b;
};
struct T {
  int c;
  struct S s;
};
int f ()
{
  struct T t;
  t.c = t.s.a || t.s.b;
  return t.c;
}


$ gcc-9-20180722 -c z1.c -O2
$ gcc-9-20190203 -c z1.c
$
$ gcc-9-20190203 -c z1.c -O2
during GIMPLE pass: esra
z1.c: In function 'f':
z1.c:13:1: internal compiler error: Segmentation fault
   13 | }
      | ^
0xa8a98f crash_signal
        ../../gcc/toplev.c:326
0xb3d0b0 build_ref_for_model
        ../../gcc/tree-sra.c:1791
0xb43209 sra_modify_assign
        ../../gcc/tree-sra.c:3553
0xb43209 sra_modify_function_body
        ../../gcc/tree-sra.c:3808
0xb43209 perform_intra_sra
        ../../gcc/tree-sra.c:3918

Reply via email to