https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118867
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |10.1.0 Summary|[15 regression] |[12/13/14/15 regression] |-Wfree-nonheap-object false |-Wfree-nonheap-object false |positive |positive Known to work| |9.5.0 --- Comment #10 from Andrew Pinski <pinskia at gcc dot gnu.org> --- The new reduced testcase is able to optimize away the call to foo until GCC 10. This is due to VRP changes.