Re: [patch, RFC. Fortran] Some clobbering for INTENT(OUT) arrays

2022-10-03 Thread Mikael Morin
Hello, Le 02/10/2022 à 22:07, Thomas Koenig via Fortran a écrit : I am a bit stuck of how to generate a reference to the first element of the array (really, just dereferencing the data pointer) in the most elegant way.  I am currently leaning towards building a gfc_expr, which should work, but

[patch, RFC. Fortran] Some clobbering for INTENT(OUT) arrays

2022-10-02 Thread Thomas Koenig via Gcc-patches
Hi, following Mikael's recent patch series, here is a first idea of what extending clobbering to arrays wold look like. The attached patch works for a subset of cases, for example program main implicit none interface subroutine foo(a) integer, intent(out) :: a(*) end subrouti