https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93102
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |missed-optimization
Status|UNCONFIRMED |NEW
Last reconfirmed| |2019-12-30
Component|c |tree-optimization
Ever confirmed|0 |1
Severity|normal |enhancement
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So yes it is valid in some cases, but not all. There is another bug report for
this too but I can't find it right now.
basically what needs to happen is that C00002029 cannot have its address taken;
right now it is marked as been taken due to the index'ed.