https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85205
Andrew Pinski changed:
What|Removed |Added
Status|UNCONFIRMED |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85205
Richard Biener changed:
What|Removed |Added
Keywords||wrong-code
CC|
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85205
Jakub Jelinek changed:
What|Removed |Added
CC||jakub at gcc dot gnu.org
--- Comment #2
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85205
--- Comment #1 from Jonathan Wakely ---
(In reply to Mijzelf from comment #0)
> args.data[ i ].var1 = i;
This is undefined behaviour when i>0 because the array only has one element.
It's irrelevant that the union has additional