https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119661
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >Who is correct? (Please elaborate by quoting the C++ standard.) Most likely NOT GCC. Since EDG, MSVC and clang all agree this is ill-formed.