https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107126
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- This is rejected with -std=c++20 since r11-532-g4b38d56dbac6742b038551a36ec80200313123a1 and the commit log states that it is intentional to apply it only for C++20 mode because the DR wasn't against C++17. So why do you think otherwise? https://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#2237 also states: (Note that this resolution is a change for C++20, NOT a defect report against C++17 and earlier versions.)