https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117256
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 59554 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59554&action=edit gcc15-pr117256.patch Untested fix on top of the above mentioned patch. This is just the start, I think for full support we need to decide where exactly the flag should be copied especially during constant evaluation and where should be cleared (essentially, object copying doesn't preserve it, only memcpy does but then memcpy on objects isn't kosher in constant evaluation; but e.g. bit_cast should be).