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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P4
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2018-05-03
             Blocks|                            |68241
     Ever confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> ---
Confirmed from at least 4.8 up to trunk (9.0).

I am pretty sure this is a duplicate.

The code compiles if I replace

  strings = strings(:)(:maxlen)

with

  strings(1) = strings(1)(:maxlen)
  strings(2) = strings(2)(:maxlen)

but this does not set the length of 'strings' to 'maxlen'.

IIRC I have recently seen a post saying that substrings of string array
sections are forbidden by the standard.


Referenced Bugs:

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68241
[Bug 68241] [meta-bug] [F03] Deferred-length character

Reply via email to