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

2023-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82193 --- Comment #6 from Andrew Pinski --- Just a quick note p1787 (https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p1787r6.html) moves around the place where it says no diagnostic is required but the effect is the same. it is now in

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

2023-01-28 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82193 Andrew Pinski changed: What|Removed |Added CC||mserdarsanli at gmail dot com ---

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

2017-09-12 Thread redi at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82193 Jonathan Wakely changed: What|Removed |Added Status|UNCONFIRMED |RESOLVED Resolution|---

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

2017-09-12 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82193 --- Comment #3 from Andrew Pinski --- (In reply to Marc Mutz from comment #2) > Basically: because the other two compilers compile it. Again so ...

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

2017-09-12 Thread marc.mutz at kdab dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82193 --- Comment #2 from Marc Mutz --- Basically: because the other two compilers compile it.

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

2017-09-12 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82193 --- Comment #1 from Andrew Pinski --- 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.