https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96117
Stephen <steveire at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|NEW |RESOLVED --- Comment #3 from Stephen <steveire at gmail dot com> --- This seems to be fixed in the latest release https://godbolt.org/z/Kdsrs76PT https://developers.redhat.com/articles/2023/06/21/new-c-features-gcc-13#additional_updates