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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[11/12/13/14 Regression]    |[11/12/13/14 Regression]
                   |ICE on invalid code:        |ICE with statement
                   |recompute_tree_invariant_fo |expression and offsetof
                   |r_addr_expr                 |like expression
           Priority|P4                          |P3
           Keywords|error-recovery,             |ice-on-valid-code
                   |ice-on-invalid-code         |

--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
You can make this valid (maybe not runtime defined) GNU C code that ICEs in the
same way:
```
struct obj {
  int n;
  int l;
};
int main() {
  (struct obj *)((char *)(__SIZE_TYPE__)({ 0; }) - (char *)&((struct obj
*)0)->l);
}

```

Reply via email to