[Bug fortran/105691] Incorrect calculation of INDEX(str1,str2) at compile time

2022-07-01 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105691 anlauf at gcc dot gnu.org changed: What|Removed |Added Target Milestone|--- |10.5 Status|ASSI

[Bug fortran/105691] Incorrect calculation of INDEX(str1,str2) at compile time

2022-07-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105691 --- Comment #11 from CVS Commits --- The releases/gcc-10 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:e6db08d9183b80b0ada5122fae79412544279f56 commit r10-10877-ge6db08d9183b80b0ada5122fae79412544279f56 Author: Harald Anlauf

[Bug fortran/105691] Incorrect calculation of INDEX(str1,str2) at compile time

2022-07-01 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105691 --- Comment #10 from CVS Commits --- The releases/gcc-11 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:614d9e76b71df6c5ad42f2b9c2a8156e8b3ebd35 commit r11-10102-g614d9e76b71df6c5ad42f2b9c2a8156e8b3ebd35 Author: Harald Anlauf

[Bug fortran/105691] Incorrect calculation of INDEX(str1,str2) at compile time

2022-06-30 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105691 --- Comment #9 from CVS Commits --- The releases/gcc-12 branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:26ea506a1e8719f8b1f559e70bee9f5d3392eb37 commit r12-8530-g26ea506a1e8719f8b1f559e70bee9f5d3392eb37 Author: Harald Anlauf

[Bug fortran/105691] Incorrect calculation of INDEX(str1,str2) at compile time

2022-06-26 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105691 --- Comment #8 from anlauf at gcc dot gnu.org --- Fixed on mainline so far.

[Bug fortran/105691] Incorrect calculation of INDEX(str1,str2) at compile time

2022-06-26 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105691 --- Comment #7 from CVS Commits --- The master branch has been updated by Harald Anlauf : https://gcc.gnu.org/g:ff35dbc02092fbcd3d814fcd9fe8e871c3f741fd commit r13-1277-gff35dbc02092fbcd3d814fcd9fe8e871c3f741fd Author: Harald Anlauf Date: T

[Bug fortran/105691] Incorrect calculation of INDEX(str1,str2) at compile time

2022-06-21 Thread sgk at troutmask dot apl.washington.edu via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105691 --- Comment #6 from Steve Kargl --- On Tue, Jun 21, 2022 at 09:28:27PM +, anlauf at gcc dot gnu.org wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105691 > > --- Comment #5 from anlauf at gcc dot gnu.org --- > Submitted version: http

[Bug fortran/105691] Incorrect calculation of INDEX(str1,str2) at compile time

2022-06-21 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105691 --- Comment #5 from anlauf at gcc dot gnu.org --- Submitted version: https://gcc.gnu.org/pipermail/fortran/2022-June/057940.html

[Bug fortran/105691] Incorrect calculation of INDEX(str1,str2) at compile time

2022-06-21 Thread anlauf at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105691 anlauf at gcc dot gnu.org changed: What|Removed |Added Status|NEW |ASSIGNED CC|

[Bug fortran/105691] Incorrect calculation of INDEX(str1,str2) at compile time

2022-05-22 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105691 --- Comment #3 from kargl at gcc dot gnu.org --- There is no need to special case the substring length of 1 case with my suggested patch. Here's an update to eliminate the special case. diff --git a/gcc/fortran/simplify.cc b/gcc/fortran/simplif

[Bug fortran/105691] Incorrect calculation of INDEX(str1,str2) at compile time

2022-05-22 Thread kargl at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105691 kargl at gcc dot gnu.org changed: What|Removed |Added Last reconfirmed||2022-05-22 CC

[Bug fortran/105691] Incorrect calculation of INDEX(str1,str2) at compile time

2022-05-22 Thread xecej4 at outlook dot com via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105691 --- Comment #1 from mecej4 --- When a program contains an expression that involves the INDEX intrinsic function, and it is possible to calculate its result value at compile time, the computed value is sometimes incorrect. program main i = in