https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102898
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- GCC is correct in this error message. The (current) C++ standard requires no diagnostic on this though.