[flang-commits] [flang] [llvm] [flang][flang-rt] Implement F202X leading-zero control edit descriptors LZ, LZS, and LZP for formatted output (F, E, D, and G editing) (PR #183500)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Fri Mar 20 06:24:41 PDT 2026


================
@@ -922,6 +934,8 @@ void IoChecker::LeaveReadWrite() const {
       "FMT or NML"); // C1227
   CheckForRequiredSpecifier(IoSpecKind::Round, flags_.test(Flag::FmtOrNml),
       "FMT or NML"); // C1227
+  CheckForRequiredSpecifier(IoSpecKind::Leading_Zero,
+      flags_.test(Flag::FmtOrNml), "FMT or NML"); // C1227
----------------
eugeneepshteyn wrote:

>From which Fortran spec version is C1227? With all new code, we'd like to be explicit about what Fortran spec version a particular rule is from, e.g. `F'2003 C1227` (or whatever the version number).

Please modify all the `Cxxxx` you added in similar fashion, so that when F'2058 is a current spec we know where those specific `Cxxxx` come from :-)

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


More information about the flang-commits mailing list