[Bug c++/95638] Legit-looking code doesn't work with -O2

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Jun 11 12:12:53 GMT 2020


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95638

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |marxin at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
The code works with -flifetime-dse=1, so I bet there's some object that goes
out of life:
https://gcc.gnu.org/onlinedocs/gcc/Optimize-Options.html
https://gcc.gnu.org/gcc-6/porting_to.html#flifetime-dse


More information about the Gcc-bugs mailing list