[flang-commits] [flang] [llvm] [flang-rt] enable IsNamelistNameOrSlash lookahead for scalar namelist items (PR #211224)

Kareem Ergawy via flang-commits flang-commits at lists.llvm.org
Fri Jul 31 02:25:46 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
----------------
ergawy wrote:

Done.

https://github.com/llvm/llvm-project/pull/211224


More information about the flang-commits mailing list