[Bug c++/103653] GCC rejected int x = 0; auto(x); in C++23

2021-12-26 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103653 --- Comment #4 from Jonathan Wakely --- Yes this changed in C++23 so auto(X) creates an rvalue of the decayed type of x.

[Bug c++/103653] GCC rejected int x = 0; auto(x); in C++23

2021-12-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103653 --- Comment #3 from Andrew Pinski --- >But I think auto(x) should also be well-formed. it is well formed as a declaration. auto(x) = 1; Unless something changed in that part of C++ standard too. The following does work as expected too:

[Bug c++/103653] GCC rejected int x = 0; auto(x); in C++23

2021-12-25 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103653 康桓瑋 changed: What|Removed |Added Resolution|INVALID |--- Status|RESOLVED

[Bug c++/103653] GCC rejected int x = 0; auto(x); in C++23

2021-12-10 Thread hewillk at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103653 康桓瑋 changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED