https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115676
Xi Ruoyao <xry111 at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #3 from Xi Ruoyao <xry111 at gcc dot gnu.org> --- Clang and MSVC give no diagnostic as well. So like PR55361, "unless this is recategorised as a diagnostic enhancement request this is clearly invalid, the compiler is not required to give an error for this code."