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

--- Comment #9 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
> This patch caused lots of regressions in the testsuite, see e.g.
> http://gcc.gnu.org/ml/gcc-regression/2018-10/msg00062.html

See pr87577. This patch will likely break some more codes, e.g., pr87575.

> NOTE 9.11
> Examples of array elements and array sections are:
>     ARRAY_A(1:N:2)%ARRAY_B(I, J)%STRING(K)(:)      array section

Also

NOTE 9.9
For example, with the declarations:
REAL A (10, 10)
CHARACTER (LEN = 10) B (5, 5, 5)
A (1, 2) is an array element, A (1:N:2, M) is a rank-one array section, 
and B (:, :, :) (2:3) is an array of shape (5, 5, 5) whose elements 
are substrings of length 2 of the corresponding elements of B.

and similar notes in the 2003 standard. These notes clearly contradict the
proposed interpretation of 

R909 parent-string is scalar-variable-name
                   or array-element
                   or coindexed-named-object
                   or scalar-structure-component
                   or scalar-constant

IMO r264990 should be reverted until the contradiction is resolved.

Reply via email to