https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110027
--- Comment #31 from Stuart <stuart.a.hayhurst at gmail dot com> --- I can reproduce this with GCC 14.2 and GCC 15.1 on Debian Sid. In my case it was std::memcpy that gave me an issue, but the reproducer here is the same issue.