[flang][runtime] NAMELIST input into storage sequence (#76584)

Nearly every Fortran compiler supports the extension of NAMELIST input
into a storage sequence identified by its initial scalar array element.
For example,
  &GROUP A(1) = 1. 2. 3. /
should be processed as if the input had been
  &GROUP A(1:) = 1. 2. 3. /

Fixes llvm-test-suite/Fortran/gfortran/regression/namelist_24.f90.
This commit is contained in:
Peter Klausler
2024-01-02 09:25:49 -08:00
committed by GitHub
parent 49ee8b53ef
commit dea30aca3a
2 changed files with 38 additions and 4 deletions

View File

@@ -657,3 +657,7 @@ end
but every Fortran compiler allows the encoding to be changed on an
open unit.
* A `NAMELIST` input item that references a scalar element of a vector
or contiguous array can be used as the initial element of a storage
sequence. For example, "&GRP A(1)=1. 2. 3./" is treated as if had been
"&GRP A(1:)=1. 2. 3./".