This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/58043] [OOP] Incorrect behaviour of polymorphic array
- From: "sacks at ucar dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 11 Jun 2014 17:03:13 +0000
- Subject: [Bug fortran/58043] [OOP] Incorrect behaviour of polymorphic array
- Auto-submitted: auto-generated
- References: <bug-58043-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=58043
Bill Sacks <sacks at ucar dot edu> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |sacks at ucar dot edu
--- Comment #4 from Bill Sacks <sacks at ucar dot edu> ---
Created attachment 32926
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=32926&action=edit
another test case demonstrating this behavior
For what it's worth, I'm attaching another test case that demonstrates what
seems to be the same bug.
There are two subroutines, one in which the argument is declared as a 'type'
and one as a 'class'. The subroutine that uses the 'type' dummy variable
produces the correct output:
21
22
23
whereas the one that uses the 'class' dummy variable produces the wrong output:
21
0
0
I have confirmed this buggy behavior in gfortran 4.7.3, 4.8.2, 4.8.3 and 4.9.0.