https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106943
--- Comment #29 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- (In reply to Xi Ruoyao from comment #28) > (In reply to Alexander Monakov from comment #21) > > (In reply to Xi Ruoyao from comment #18) > > > Maybe. Should we send a patch? > > > > Yes, if we have a volunteer. > > I'm creating it, but from the description of the LLVM issue 24952: > > "To put it simply, operator delete for class User inspects memory of the > object after the end of its lifetime. This shows as a use-after-dtor error > when running under MemorySanitizer." > > So it seems technically we'll need -fno-lifetime-dse here? Our docs say > -flifetime-dse only "preserve stores before the constructor starts" but ^^^^^^^^^^^^^^ I mean, -flifetime-dse=1 > "still treat the object as dead after the destructor".