https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86050
Marc Glisse <glisse at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Component|middle-end |tree-optimization --- Comment #1 from Marc Glisse <glisse at gcc dot gnu.org> --- Indeed. The testcase is easier to analyze if you replace iostreams with a plain printf. The key element seems to be taking the address of a local variable.