https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94621
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |9.4 Summary|GCC 9.2.1 segfaults when |[9/10 Regression] GCC 9.2.1 |compiling file with -O3 |segfaults when compiling | |file with -O3 since r9-5354 CC| |jakub at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org Component|c |tree-optimization Status|UNCONFIRMED |ASSIGNED Last reconfirmed| |2020-04-16 Ever confirmed|0 |1 --- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Started with my r9-5354-gda972c05f48637060ae3a3b121f99d1522413b82 Slightly cleaned up testcase at -O2: struct S { int c, e[]; }; static inline int foo (struct S *m, int r, int c) { int (*a)[][m->c] = (int (*)[][m->c])&m->e; return (*a)[r][c]; } void bar (struct S *a) { foo (a, 0, 0); }