https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111974
--- Comment #3 from Basile Starynkevitch <basile at starynkevitch dot net> --- This bug seems to have disappeared with a trunk GCC (GCC commit f32c1e1e96ffef) compiled from its source code /usr/local/bin/g++-trunk --version g++-trunk (GCC) 14.0.0 20231025 (experimental) Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. where the g++ trunk code has been configured then compiled using '../gcc/configure' '--enable-host-shared' '--program-suffix=-trunk' '--enable-debug' '--disable-bootstrap' 'CFLAGS=-O2 -g' 'CXXFLAGS=-O2 -g' '--enable-languages=c,c++,jit,lto'