Re: [PATCH] Fortran: improve bounds checking for DATA with implied-do [PR35095]

2023-08-24 Thread Jerry D via Fortran
On 8/24/23 2:28 PM, Harald Anlauf via Fortran wrote: Dear all, the attached patch adds stricter bounds-checking for DATA statements with implied-do. I chose to allow overindexing (for arrays of rank greater than 1) for -std=legacy, as there might be codes in the wild that need this (and this is

[PATCH] Fortran: improve bounds checking for DATA with implied-do [PR35095]

2023-08-24 Thread Harald Anlauf via Fortran
Dear all, the attached patch adds stricter bounds-checking for DATA statements with implied-do. I chose to allow overindexing (for arrays of rank greater than 1) for -std=legacy, as there might be codes in the wild that need this (and this is accepted by some other compilers, while NAG is strict

Re: Help with fortran pointer ans OpenACC

2023-08-24 Thread Patrick Begou via Fortran
Hi Tobias, many thanks for all these informations! - I confirm, this clause solve the problem with GNU Fortran - This workaround is fully compatible with Nvidia Fortran - The problem with Cray Fortran remains (with this compiler, the test-case runs but the result is wrong) I've tested the sugg