This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/56691] [OOP] Allocatable array: wrong offset when passing to CLASS dummy
- From: "janus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 16 Dec 2016 22:15:56 +0000
- Subject: [Bug fortran/56691] [OOP] Allocatable array: wrong offset when passing to CLASS dummy
- Auto-submitted: auto-generated
- References: <bug-56691-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56691
janus at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Known to work| |6.2.0, 7.0
Resolution|--- |FIXED
Target Milestone|--- |6.2
Known to fail| |4.9.0, 5.4.1
--- Comment #5 from janus at gcc dot gnu.org ---
(In reply to physiker from comment #4)
> When I use gfortran version 7 to compile the code listed in comment 3,
> executing the resulting binary yields the following output:
>
> ./pr56691
> Values in work are:
> 1.00000000 2.00000000 3.00000000 4.00000000
> Call with whole array: works fine
> Inside LCB: size is 4
> 1.00000000 2.00000000 3.00000000 4.00000000
> Call with array slice: off by 1
> Inside LCB: size is 4
> 1.00000000 2.00000000 3.00000000 4.00000000
>
> This is the expected result. The bug might be fixed.
Confirmed. In fact I see it working already in 6.2. It can definitely be
closed.