https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96996
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |DUPLICATE CC| |msebor at gcc dot gnu.org Component|c++ |tree-optimization See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=86318 --- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> --- Let me confirm this as a potential generic optimization. In fact, I believe it's a duplicate of pr80794. The related pr86318, when implemented, should extend this optimization to non-const locals as well. *** This bug has been marked as a duplicate of bug 80794 ***