https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120305
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> --- tl;dr if you want to compile with strict -std=c++20 -pedantic settings, you need to strictly follow the rules of the standard.
redi at gcc dot gnu.org via Gcc-bugs Fri, 16 May 2025 03:30:32 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120305
--- Comment #12 from Jonathan Wakely <redi at gcc dot gnu.org> --- tl;dr if you want to compile with strict -std=c++20 -pedantic settings, you need to strictly follow the rules of the standard.