[Bug middle-end/98753] -Wfree-nonheap-object on unreachable code with -O0

boris at kolpackov dot net gcc-bugzilla@gcc.gnu.org
Fri Jan 29 11:36:29 GMT 2021


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

--- Comment #14 from Boris Kolpackov <boris at kolpackov dot net> ---
If this cannot be fixed for 11 (and judging by the age of 54202 I feel it's not
likely), perhaps it makes sense not to enable this warning by default? Now that
C++ operator delete() is covered by this check (see bug 57111), it's reasonable
to expect more false positives like these.


More information about the Gcc-bugs mailing list