https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71258
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|fixed-but-no-testcase, |
|needs-bisection |
Resolution|--- |FIXED
Target Milestone|--- |15.0
Status|NEW |RESOLVED
Known to fail|15.1.0 |
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
So if we do s/main/f/, then it is fixed for GCC 15 which is where the
optimization for new/delete was added.
The difference between GCC 15 and 16 with respect to main is due to slight
heurstic difference of the inliner.
So the original issue was fixed in GCC 15 with additional improvement for the
main inliner heurstics for 16.