https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116121
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- EDG accepts this too. So in summary it is: GCC and MSVC reject it for the same reason. EDG and clang accept it.
pinskia at gcc dot gnu.org via Gcc-bugs Sat, 27 Jul 2024 23:01:26 -0700
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116121
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- EDG accepts this too. So in summary it is: GCC and MSVC reject it for the same reason. EDG and clang accept it.