[Bug middle-end/102518] [11/12 regression] ICE during GIMPLE pass: einline in gimplify_modify_expr at -O2

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 28 19:31:28 GMT 2021


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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever confirmed|0                           |1
           Keywords|                            |needs-bisection
   Target Milestone|---                         |11.3
   Last reconfirmed|                            |2021-09-28

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed, here is reduced C testcase:
struct A {
  int *x;
};
int i;
int f(int *const c) {
  struct A * b = (struct A *)(&c);
  return b->x != 0;
}
void g() { f(&i); }

--------------- CUT --------------
If I change &c into just c, GCC does not crash.


More information about the Gcc-bugs mailing list