[flang-commits] [PATCH] D139144: [flang] Emit portability warning for assigned FORMAT use

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Sat Dec 3 17:38:05 PST 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rG9c1ad89d0e77: [flang] Emit portability warning for assigned FORMAT use (authored by klausler).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139144/new/

https://reviews.llvm.org/D139144

Files:
  flang/lib/Semantics/check-io.cpp


Index: flang/lib/Semantics/check-io.cpp
===================================================================
--- flang/lib/Semantics/check-io.cpp
+++ flang/lib/Semantics/check-io.cpp
@@ -231,6 +231,9 @@
               if (!IsVariable(*expr)) {
                 context_.Say(format.source,
                     "Assigned format label must be a scalar variable"_err_en_US);
+              } else if (context_.ShouldWarn(common::LanguageFeature::Assign)) {
+                context_.Say(format.source,
+                    "Assigned format labels are deprecated"_port_en_US);
               }
               return;
             }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D139144.479883.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20221204/736ebd19/attachment-0001.bin>


More information about the flang-commits mailing list