https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93873
Martin Sebor <msebor at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED Known to work| |10.2.0, 11.0 Known to fail| |6.3.0, 7.5.0, 8.4.0, 9.3.0 CC| |msebor at gcc dot gnu.org Blocks| |99098 --- Comment #7 from Martin Sebor <msebor at gcc dot gnu.org> --- I can reproduce the warning with versions up to 9, at -O2 (or -O3) and both with and without -flto. GCC 10 doesn't issue it. Bisection points to r276416 as the fix. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99098 [Bug 99098] invalid/missing -Wfree-nonheap-object warnings