[Bug c++/107354] gcc and clang give different answers for this arithmetic expression

2022-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107354 --- Comment #3 from Andrew Pinski --- And even more from https://gcc.gnu.org/bugs/#known : Increment/decrement operator (++/--) not working as expected - a problem with many variations.

[Bug c++/107354] gcc and clang give different answers for this arithmetic expression

2022-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107354 --- Comment #2 from Andrew Pinski --- Plus from https://gcc.gnu.org/bugs/ : Before reporting that GCC compiles your code incorrectly, compile it with gcc -Wall -Wextra and see whether this shows anything wrong with your code.

[Bug c++/107354] gcc and clang give different answers for this arithmetic expression

2022-10-21 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107354 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED