https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118491
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- In -std=gnu++{11,14,17,20} modes perhaps -fno-range-for-ext-temps could work around it. But in -std=c++23/-std=gnu++23 that is an error, C++23 requires the extension of the range for temporaries.