[Bug c++/94314] [10 Regression] Optimizing mismatched new/delete pairs since r10-2106-g6343b6bf3bb83c87

marxin at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 30 07:57:24 GMT 2020


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

--- Comment #7 from Martin Liška <marxin at gcc dot gnu.org> ---
> It should be sufficient to check whether they have the same DECL_CONTEXT.

This seems to work. I'm testing a patch candidate.


More information about the Gcc-bugs mailing list