[Bug c++/82193] incorrectly rejects int x; struct { decltype(x) x; } f = {x};

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 12 18:49:00 GMT 2017


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.


More information about the Gcc-bugs mailing list