[Bug fortran/84074] Incorrect indexing of array when actual argument is an array expression and dummy is polymorphic
dominiq at lps dot ens.fr
gcc-bugzilla@gcc.gnu.org
Sat Jan 27 00:00:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84074
Dominique d'Humieres <dominiq at lps dot ens.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
Priority|P3 |P4
Status|UNCONFIRMED |NEW
Last reconfirmed| |2018-01-27
Ever confirmed|0 |1
--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from 6.4.0, 7.2.0 and trunk (8.0). For 4.8, 4.9, and 5 the values for
a%n and a(1:size(a))%n are also wrong.
using
do i=0,size(a)-1
print *,a(i)%n
enddo
displays the expected values.
I am pretty sure there is at least one duplicate, but I cannot find it right
now.
More information about the Gcc-bugs
mailing list