[flang-commits] [flang] [llvm] [flang] [flang-rt] Implement AT edit descriptor for Fortran 202X with appropriate handling and tests (PR #189157)

via flang-commits flang-commits at lists.llvm.org
Thu Apr 2 07:15:45 PDT 2026


================
@@ -921,6 +921,13 @@ template <typename CHAR>
 RT_API_ATTRS bool EditCharacterOutput(IoStatementState &io,
     const DataEdit &edit, const CHAR *x, std::size_t length) {
   int len{static_cast<int>(length)};
+  if (edit.descriptor == 'A' && edit.variation == 'T') {
+    // AT edit descriptor: trim trailing blanks (F202X TRIM semantics)
----------------
kwyatt-ext wrote:

It should be F2023, not "F202X".

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


More information about the flang-commits mailing list