[Bug c++/103183] ind[arr] produces an lvalue when arr is an array xvalue

2021-11-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103183 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > Found it PR 79832. Well DR 1213, http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_defects.html#1213

[Bug c++/103183] ind[arr] produces an lvalue when arr is an array xvalue

2021-11-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103183 --- Comment #2 from Andrew Pinski --- Found it PR 79832.

[Bug c++/103183] ind[arr] produces an lvalue when arr is an array xvalue

2021-11-11 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103183 --- Comment #1 from Andrew Pinski --- There has to be C++ defect report about this. Because clang has the behavior you are requesting but ICC, MSVC all act the same as GCC.