https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82193
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Why do you think this is a bug in GCC? The "changes meaning of" is a diagnostic which is not required by C++. That is the C++ language says this is invalid code but a diagnostic is not required.