https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107861
--- Comment #3 from Markus F.X.J. Oberhumer <markus at oberhumer dot com> --- Indeed. And just for reference I had also reported this as clang bug in https://github.com/llvm/llvm-project/issues/59195