https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99087
Ivan Sorokin <vanyacpp at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #2 from Ivan Sorokin <vanyacpp at gmail dot com> --- Since GCC 12 the issue no longer reproduces. Closing as fixed. https://godbolt.org/z/ss7Y84a9f