[Bug other/98663] gcc generates endless loop at -O2 or greater depending on order of testExpression

2021-01-13 Thread charliepdts at gmx dot at via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98663 --- Comment #5 from charliepdts at gmx dot at --- Hi Jakub, thanks for the detailed description and the insights as to the assumptions that the compiler uses when optimizing code like this.

[Bug other/98663] gcc generates endless loop at -O2 or greater depending on order of testExpression

2021-01-13 Thread charliepdts at gmx dot at via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98663 --- Comment #3 from charliepdts at gmx dot at --- While I appreciate the anything can happen, what surprised us was the lack of any kind of warning. Does the compiler not notice the access outside the array in this case? background: we are worki

[Bug other/98663] New: gcc generates endless loop at -O2 or greater depending on order of testExpression

2021-01-13 Thread charliepdts at gmx dot at via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98663 Bug ID: 98663 Summary: gcc generates endless loop at -O2 or greater depending on order of testExpression Product: gcc Version: 4.9.1 Status: UNCONFIRMED Severit