https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118867
--- Comment #8 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Patrick Palka from comment #7) > > Would be useful to have a bisect on where the original testcase in comment > > #0 started to warn. > GCC 14 compiling GCC 15 preprocessed sources also emits the warning, while > GCC 15 compiling GCC 14 preprocessed sources doesn't emit the warning, which > suggests it started with a libstdc++ commit. AFAICT it started with > r15-5909-gf29d1b5836790e "libstdc++: Add fancy pointer support to std::list > [PR57272]". oh, that makes even more sense here. We still have a missed optmization on the gimple level. that is related to my reduced testcase.