This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47844] Array stride ignored for pointer-valued function results
- From: "paul.richard.thomas at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 05 Oct 2011 14:35:14 +0000
- Subject: [Bug fortran/47844] Array stride ignored for pointer-valued function results
- Auto-submitted: auto-generated
- References: <bug-47844-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47844
--- Comment #6 from paul.richard.thomas at gmail dot com <paul.richard.thomas at gmail dot com> 2011-10-05 14:35:14 UTC ---
Dear Tobias and Dominique,
We could fix this in 4.7 by adding a sm field to array descriptors.
If we added the sm field after the dimension array, we would not
damage the exiting API.
On Tue, Mar 1, 2011 at 2:20 PM, burnus at gcc dot gnu.org
<gcc-bugzilla@gcc.gnu.org> wrote:
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47844
>
> Tobias Burnus <burnus at gcc dot gnu.org> changed:
>
>      What  Â|Removed           |Added
> ----------------------------------------------------------------------------
>      ÂSummary|I/O: data transfer     Â|Array stride ignored for
>          |statement: Array stride   |pointer-valued function
> Â Â Â Â Â Â Â Â Â |ignored for pointer-valued Â|results
>          |function results      Â|
>
> --- Comment #3 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-03-01 13:20:28 UTC ---
> Does not only affect I/O but also assignment; cf. example below.
>
> Âinteger, target :: tgt(5) = [1,2,3,4,5]
> Âinteger :: var(3)
> Âvar = f(tgt) ! should assign 1 3 5
> Âprint *, ptr ! but  Âprints 1 2 3
> contains
> Âfunction f(x)
> Â Âinteger, target :: x(:)
> Â Âinteger, pointer :: f(:)
> Â Âf => x(::2)
> Âend function f
> end
>
> --
> Configure bugmail: http://gcc.gnu.org/bugzilla/userprefs.cgi?tab=email
> ------- You are receiving this mail because: -------
> You are on the CC list for the bug.
>