https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106943
--- Comment #20 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #19) > > > Is there any need to over-engineer this like that? I would hope enabling > > > -fno-lifetime-dse globally would not be controversial for LLVM > > It would be really nice to have the ranger bug fixed. Since lifetime > DSE is all handled in C++ FE there is no good reason why it should not > work to LTO togehter objects compiled with the flag and without... I guess it's just some pure "lucky and unlucky" thing which may happen with any optimization change as the LLVM developers intends to invoke undefined behavior... Maybe one day LLVM will break itself as well.