Re: Fortran 15.0.1 treats "shiftl" as impure

2025-04-18 Thread ZAPART CHRISTOPHER ANDREW
Clear Linux will update their gcc/gfortran before Fedora. Anyway, thank you! Best regards, Chris 2025/04/17 12:06、Jerry D のメール: On 4/16/25 6:48 PM, ZAPART CHRISTOPHER ANDREW wrote: Sorry don’t have a bugzilla account yet. For completeness here is a full test code that also calls a pure subroutine

Re: Fortran 15.0.1 treats "shiftl" as impure

2025-04-16 Thread ZAPART CHRISTOPHER ANDREW
Sorry don’t have a bugzilla account yet. For completeness here is a full test code that also calls a pure subroutine from within a “block” located inside a “do concurrent” loop. Regards, Chris gfortran -march=native -g -Ofast -fPIC -fno-finite-math-only -funroll-loops -ftree-vectorize -fopenmp

Re: Fortran 15.0.1 treats "shiftl" as impure

2025-04-16 Thread ZAPART CHRISTOPHER ANDREW
Hi guys, Thank you everyone for looking so promptly into it. Since you already have created a test program on GCC Bugzilla there is no point in duplicating the efforts. The “offending” intrinsics “shift” and “min” are indeed used from within a “block”, as per your “wrongly rejected” test code.

Fortran 15.0.1 treats "shiftl" as impure

2025-04-15 Thread ZAPART CHRISTOPHER ANDREW
Hello, After a recent upgrade from Fedora 41 to 42 the gfortran got updated from 14 to 15.0.1: [chris@fedora FITSWEBQLSE]$ gfortran --version GNU Fortran (GCC) 15.0.1 20250329 (Red Hat 15.0.1-0) The new version 15.0.1 seems to treat "shiftl" elemental intrinsic functions as IMPURE. As a conseq