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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
There is an aliasing issue:
```
union {
  int64_t d;
  int32_t e;
} aa = {6};
...
static int32_t *o = &aa.e;
...  int64_t *ap = &aa.d;
  *ap = 0;
  if (*o) {
```

The store is via int64_t and then load via int32_t. If you did it via the union
directly it would work.

Reply via email to