[Bug c++/111482] [14 Regression] ice in lower_bound with -O3

2023-09-19 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111482 --- Comment #7 from Jiu Fu Guo --- This is caused by missing to check a vr's "undefine_p". In the pattern "(X + C) / N", (if (exact_mod (c) ... && range_op_handler (PLUS_EXPR).overflow_free_p (vr0, vr1) ...) (plus (op

[Bug c++/111482] [14 Regression] ice in lower_bound with -O3

2023-09-19 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111482 --- Comment #6 from Jiu Fu Guo --- I reproduced these issue PR11148 and PR111355 on ppc64le too.

[Bug c++/111482] [14 Regression] ice in lower_bound with -O3

2023-09-19 Thread guojiufu at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111482 --- Comment #5 from Jiu Fu Guo --- Thanks a lot for reporting this!

[Bug c++/111482] [14 Regression] ice in lower_bound with -O3

2023-09-19 Thread dcb314 at hotmail dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111482 --- Comment #4 from David Binderman --- Created attachment 55937 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=55937=edit partially reduced C++ source code After an hour of reduction, I have the attached C++ file.

[Bug c++/111482] [14 Regression] ice in lower_bound with -O3

2023-09-19 Thread zhendong.su at inf dot ethz.ch via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111482 Zhendong Su changed: What|Removed |Added CC||zhendong.su at inf dot ethz.ch ---

[Bug c++/111482] [14 Regression] ice in lower_bound with -O3

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

[Bug c++/111482] [14 Regression] ice in lower_bound with -O3

2023-09-19 Thread mpolacek at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111482 Marek Polacek changed: What|Removed |Added Ever confirmed|0 |1 Target Milestone|---