[Bug c++/107065] GCC treats rvalue as an lvalue

2023-05-04 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 Jakub Jelinek changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug c++/107065] GCC treats rvalue as an lvalue

2023-05-03 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 --- Comment #18 from CVS Commits --- The releases/gcc-10 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:52921a6c7249ac5d0aa58231ae45997bebd2bc67 commit r10-11347-g52921a6c7249ac5d0aa58231ae45997bebd2bc67 Author: Jakub

[Bug c++/107065] GCC treats rvalue as an lvalue

2023-05-02 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 --- Comment #17 from CVS Commits --- The releases/gcc-11 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:200854895c55ec999f38fce9086e711173a4a01a commit r11-10689-g200854895c55ec999f38fce9086e711173a4a01a Author: Jakub

[Bug c++/107065] GCC treats rvalue as an lvalue

2023-02-10 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 --- Comment #16 from CVS Commits --- The releases/gcc-12 branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:bc1ee711eeab4b0d55463cd153747d30c69225c7 commit r12-9127-gbc1ee711eeab4b0d55463cd153747d30c69225c7 Author: Jakub Jelinek

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-12-16 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 --- Comment #15 from Jakub Jelinek --- Fixed on the trunk so far.

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-12-15 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 --- Comment #14 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:8b775b4c48a3cc4ef5c50e56144aea02da2e9cc6 commit r13-4726-g8b775b4c48a3cc4ef5c50e56144aea02da2e9cc6 Author: Jakub Jelinek Date:

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-09-30 Thread glisse at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 --- Comment #13 from Marc Glisse --- (In reply to Jakub Jelinek from comment #12) > Doing it on the match.pd side doesn't look right, there could be many other > optimizations that result in something similar. $ grep -c non_lvalue match.pd

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-09-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 Jakub Jelinek changed: What|Removed |Added CC||jakub at gcc dot gnu.org,

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-09-30 Thread glisse at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 --- Comment #11 from Marc Glisse --- Did you try adding "non_lvalue" in match.pd? It looks less intrusive. Although in the long term your approach seems better and the failures should be fixable.

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-09-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 Jakub Jelinek changed: What|Removed |Added Assignee|jakub at gcc dot gnu.org |unassigned at gcc dot gnu.org

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-09-30 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 Jakub Jelinek changed: What|Removed |Added Attachment #53642|0 |1 is obsolete|

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-09-29 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 Jakub Jelinek changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-09-29 Thread glisse at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 --- Comment #8 from Marc Glisse --- (simplify (bit_not (bit_not @0)) @0) while in an other place we have (simplify (bit_and @0 integer_all_onesp) (non_lvalue @0))

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-09-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 Marek Polacek changed: What|Removed |Added CC||nir.livne at gmail dot com --- Comment

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-09-28 Thread jlame646 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 --- Comment #6 from Jason Liam --- The bug was discovered here: https://stackoverflow.com/questions/73877384/stdis-same-different-results-beween-compilers

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-09-28 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 Marek Polacek changed: What|Removed |Added CC||mpolacek at gcc dot gnu.org ---

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-09-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 --- Comment #4 from Jonathan Wakely --- Or as a compile-time test, not run-time: template struct is_same { static constexpr bool value = false; }; template struct is_same { static constexpr bool value = true; }; int main() { bool b =

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-09-28 Thread jlame646 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 --- Comment #3 from Jason Liam --- (In reply to Jonathan Wakely from comment #1) > Reduced to remove the library dependency: > > enum Cat { prvalue, lvalue, xvalue }; > > template > struct value_category { > // Or can be an integral or

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-09-28 Thread jlame646 at gmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 --- Comment #2 from Jason Liam --- Here is another reduced demo: https://godbolt.org/z/hGhfrKrad ``` #include int main() { bool b = true; std::cout << std::is_same::value << "\n"; auto bb = (!(!b)); std::cout <<

[Bug c++/107065] GCC treats rvalue as an lvalue

2022-09-28 Thread redi at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107065 Jonathan Wakely changed: What|Removed |Added Keywords||wrong-code