https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120931
--- Comment #1 from Виталий Новичков <nvd339 at yandex dot ru> --- Created attachment 61787 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=61787&action=edit The test code to be built with -std=c++98 argument. Also: I am not fully sure WHEN this bug introduced and does it exists in newer GCC versions, but people who reported me this issue, run various distros like Arch-based and Fedora do have the GCC 15.1.0.