https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85128
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- GCC is correct here. The C++ standard says there is no need for a diagnostic even if the code is invalid C++.