spurious out-of-bounds warning message

2023-07-12 Thread Vivek Rao via Fortran
For the code program main implicit none integer, parameter :: n = 10 real :: x(n), dx(n) integer :: i call random_number(x) do i=1,n    if (i > 1) then       dx(i) = x(i) - x(i-1)    else       dx(i) = 0.0    end if end do print*,dx end program main gfortran -Wextra says for GNU Fortran (GCC) 13.

[PATCH] OpenMP: Strided/rectangular 'target update' out-of-bounds array lookup fix

2023-07-12 Thread Julian Brown
This patch fixes a bug with the calculation of array bounds in the metadata for noncontiguous 'target update' directives. We record the array base address, a bias and the array length to pass to libgomp -- but at present, we use the 'whole array size' for the last, which means that at runtime we m

[PATCH] [og13] OpenACC: Vector length warning fixes for implicit mapping/declare create tests

2023-07-12 Thread Julian Brown
This patch adds expected "vector length" warnings to several tests for NVPTX. Tested with offloading to NVPTX. I will apply (to og13) shortly. 2023-07-11 Julian Brown libgomp/ * testsuite/libgomp.oacc-c-c++-common/implicit-mapping-1.c: Add expected warning. * testsuite

Re: [Patch, Fortran, committed] Allow ref'ing PDT's len() in parameter-initializer [PR102003]

2023-07-12 Thread Andre Vehreschild via Fortran
Hi all, hi Harald, thanks for the review. I choose to use gfc_replace_expr() and retested. Everything went fine now. Also thank you clarifying the pdt as a component in a derived type and that that is still a bug and I didn't do it wrong. I have pushed the attached patch seconds ago. Thanks for