[Bug c++/85205] Optimalisation fails when using a union to allocate space on stack

2021-07-22 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85205 Andrew Pinski changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

[Bug c++/85205] Optimalisation fails when using a union to allocate space on stack

2018-04-05 Thread rguenth at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85205 Richard Biener changed: What|Removed |Added Keywords||wrong-code CC|

[Bug c++/85205] Optimalisation fails when using a union to allocate space on stack

2018-04-04 Thread jakub at gcc dot gnu.org
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

[Bug c++/85205] Optimalisation fails when using a union to allocate space on stack

2018-04-04 Thread redi at gcc dot gnu.org
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