Re: [PATCH] Fortran: fix simplification of INDEX(str1,str2) [PR105691]

2022-06-26 Thread Harald Anlauf via Fortran
Hi Thomas, thanks for the reviews! Harald Am 26.06.22 um 11:14 schrieb Thomas Koenig via Fortran: Hello Harald, compile time simplification of INDEX(str1,str2,back=.true.) gave wrong results.  Looking at gfc_simplify_index, this appeared to be close to a complete mess, while the runtime libr

Re: [PATCH] Fortran: fix simplification of INDEX(str1,str2) [PR105691]

2022-06-26 Thread Thomas Koenig via Fortran
Hello Harald, compile time simplification of INDEX(str1,str2,back=.true.) gave wrong results. Looking at gfc_simplify_index, this appeared to be close to a complete mess, while the runtime library code - which was developed later - was a relief. The solution is to use the runtime library code