Re: Fortran 15.0.1 treats "shiftl" as impure

2025-04-18 Thread ZAPART CHRISTOPHER ANDREW
Hi Jerry, Thank you very much. Hopefully there won't be any other issues to complain about. I will re-test the compilation once Fedora 42 upgrades its gcc / gfortran toolchain to the one containing your fixes (yes it will take SOME time). Probably in gcc/gfortran 15.1? Or maybe Intel Clear Lin

Re: Fortran 15.0.1 treats "shiftl" as impure

2025-04-18 Thread Paul Richard Thomas
Hi Christopher, I was somewhat surprised as well to find the pre-release version of gfortran in Fedora 42. sudo dnf install gcc14-gfortran.x86_64 will recover gfortran-14.2.1 for you, which is then invoked with: pault@fedora:~/prs/pr101047$ gfortran-14 --version GNU Fortran (GCC) 14.2.1 2025021

Re: Fortran 15.0.1 treats "shiftl" as impure

2025-04-16 Thread 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 from within a “block” located inside a “do concurrent” loop. Regards, Chris gfortran -march=native -g -Ofast -fPIC -fno-fin

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.

Re: Fortran 15.0.1 treats "shiftl" as impure

2025-04-16 Thread Jerry D
On 4/16/25 9:58 AM, Jerry D wrote: On 4/15/25 9:44 PM, ZAPART CHRISTOPHER ANDREW wrote: 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

Re: Fortran 15.0.1 treats "shiftl" as impure

2025-04-16 Thread Jerry D
On 4/15/25 9:44 PM, ZAPART CHRISTOPHER ANDREW wrote: 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

Re: Fortran 15.0.1 treats "shiftl" as impure

2025-04-16 Thread Steve Kargl
On Wed, Apr 16, 2025 at 04:44:23AM +, ZAPART CHRISTOPHER ANDREW wrote: > > 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

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