https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56789

--- Comment #10 from paul.richard.thomas at gmail dot com <paul.richard.thomas 
at gmail dot com> ---
Hi Thomas,

The centre of gravity for this problem is trans-array.c:7905. This is
triggering the packing of the array, which will indeed make the data
contiguous. However, the bounds and strides are not being reset
accordingly and passed to 'foo'.

To accomplish this, a new descriptor must be made and the packed data
pointed to by it's data field.

As a matter of curiosity, is a deferred shape array allowed to be
contiguous if it is not allocatable? According to IBM: The entity that
is specified with the CONTIGUOUS attribute must be an array pointer,
an assumed-shape array, or an assumed-rank object.

Even if that were allowed, the standard explicitly disallows the
argument association in the testcase: See 5.3.7 of the F2008 standard.

Regards

Paul




On Mon, 1 Oct 2018 at 20:01, tkoenig at gcc dot gnu.org
<gcc-bugzi...@gcc.gnu.org> wrote:
>
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56789
>
> Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
>
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                  CC|                            |pault at gcc dot gnu.org
>
> --- Comment #8 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
> Paul, I'm adding you to the CC in the hope that the analysis
> in comment#7 might help you towards a solution that is
> glaringly obvious to you (but not to me :-)
>
> --
> You are receiving this mail because:
> You are on the CC list for the bug.

Reply via email to