Re: [Patch] Fortran: Fix rank of assumed-rank array [PR99043]

2021-02-17 Thread Thomas Koenig via Gcc-patches
Hi Tobias, OK for mainline? Reported against GCC 10, not a regression but simple wrong-code fix; does it make sense to apply there was well? OK for both. Thanks for the patch! Best regards Thomas

Re: [Patch] Fortran: Fix rank of assumed-rank array [PR99043]

2021-02-12 Thread Paul Richard Thomas via Gcc-patches
Hi Tobias, The patch is good for 10- and 11-branches. Thanks Paul On Thu, 11 Feb 2021 at 18:59, Tobias Burnus wrote: > In the Fortran standard, I think it is best explained > in the description of the RANK intrinsic: > > "Example. If X is an assumed-rank dummy argument and > its associated e

[Patch] Fortran: Fix rank of assumed-rank array [PR99043]

2021-02-11 Thread Tobias Burnus
In the Fortran standard, I think it is best explained in the description of the RANK intrinsic: "Example. If X is an assumed-rank dummy argument and its associated effective argument is an array of rank, RANK(X) has the value 3." That's already well tested in assumed_rank_16.f90; however, as the