This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/84074] Incorrect indexing of array when actual argument is an array expression and dummy is polymorphic
- From: "dominiq at lps dot ens.fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 27 Jan 2018 00:00:07 +0000
- Subject: [Bug fortran/84074] Incorrect indexing of array when actual argument is an array expression and dummy is polymorphic
- Auto-submitted: auto-generated
- References: <bug-84074-4@http.gcc.gnu.org/bugzilla/>
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.