[flang-commits] [flang] [llvm] [flang-rt] enable IsNamelistNameOrSlash lookahead for scalar namelist items (PR #211224)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Thu Jul 30 20:06:01 PDT 2026
================
@@ -469,6 +469,12 @@ print *, is_contiguous(a(::2)) ! prints T in Flang
* A `NAMELIST` input group may omit its trailing `/` character if
it is followed by another `NAMELIST` input group.
* A `NAMELIST` input group may begin with either `&` or `$`.
+* In `NAMELIST` input, an assignment to a scalar item may omit its
+ value (e.g. `l=`, immediately followed by the next name-value pair,
+ the group terminator, or end-of-record). F2023 13.11.3.2 requires a
+ value to follow the `=` for a scalar item, but classic nvfortran and
----------------
eugeneepshteyn wrote:
Please give a small example here, like you did in the PR description.
https://github.com/llvm/llvm-project/pull/211224
More information about the flang-commits
mailing list