https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107126
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mpolacek at gcc dot gnu.org --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- (In reply to Jason Liam from comment #2) > Second, i'm already aware that this is rejected by gcc with c++20 as i > provided a demo link https://godbolt.org/z/TYjEzss6q at the first line of my > bug report. One thing is to know that some versions of g++ do that, but the above provides details on what change actually changed the behavior, which is useful information for any further changes. Then it is https://cplusplus.github.io/CWG/issues/1435.html which we perhaps don't implement or don't implement fully.