This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29315] error passing an array derived from type element
- From: "paul dot richard dot thomas at cea dot fr" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Oct 2006 08:09:03 -0000
- Subject: [Bug fortran/29315] error passing an array derived from type element
- References: <bug-29315-13340@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from paul dot richard dot thomas at cea dot fr 2006-10-02 08:09 -------
(In reply to comment #2)
> Confirmed, we don't set the stride correctly as far as I can tell.
This comes about because of the admitted kludge in the mechanism for passing
components of derived type arrays. At line 1588 in trans-exp.c, you will find
the comment:
/* Returns a reference to a temporary array into which a component of
an actual argument derived type array is copied and then returned
after the function call.
TODO Get rid of this kludge, when array descriptors are capable of
handling aliased arrays. */
Maybe the time has come for byte size strides, although it will be a horrific
job to implement.
Paul
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29315