https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98908
--- Comment #5 from Gabriel Ravier <gabravier at gmail dot com> --- It may have been doing it in GCC 8 (and 9, and 10), but it didn't in 11, and presumably this was also the case in trunk back in February.