[flang-commits] [PATCH] D130382: [flang] Fix name of dummy argument to intrinsic NEW_LINE(A='')

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Sat Jul 23 09:31:16 PDT 2022


This revision was automatically updated to reflect the committed changes.
Closed by commit rGcbfc22392085: [flang] Fix name of dummy argument to intrinsic NEW_LINE(A='') (authored by klausler).

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D130382

Files:
  flang/lib/Evaluate/intrinsics.cpp
  flang/test/Semantics/allocate04.f90


Index: flang/test/Semantics/allocate04.f90
===================================================================
--- flang/test/Semantics/allocate04.f90
+++ flang/test/Semantics/allocate04.f90
@@ -61,7 +61,7 @@
   allocate(u1, u2(2), MOLD = cos(5.+n))
   allocate(u1, u2(2), MOLD = molda)
   allocate(u1, u2(2), MOLD = n1)
-  allocate(u1, u2(2), MOLD = new_line("a"))
+  allocate(u1, u2(2), MOLD = new_line(a="a"))
   allocate(n1%whatever, MOLD = n2(1))
   allocate(p1, p2(2), MOLD = p3)
   allocate(p3%y, p4(2)%y, MOLD = B(5))
Index: flang/lib/Evaluate/intrinsics.cpp
===================================================================
--- flang/lib/Evaluate/intrinsics.cpp
+++ flang/lib/Evaluate/intrinsics.cpp
@@ -624,7 +624,7 @@
     {"modulo", {{"a", OperandIntOrReal}, {"p", OperandIntOrReal}},
         OperandIntOrReal},
     {"nearest", {{"x", SameReal}, {"s", AnyReal}}, SameReal},
-    {"new_line", {{"x", SameChar, Rank::anyOrAssumedRank}}, SameChar,
+    {"new_line", {{"a", SameChar, Rank::anyOrAssumedRank}}, SameChar,
         Rank::scalar, IntrinsicClass::inquiryFunction},
     {"nint", {{"a", AnyReal}, DefaultingKIND}, KINDInt},
     {"norm2", {{"x", SameReal, Rank::array}, OptionalDIM}, SameReal,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130382.447080.patch
Type: text/x-patch
Size: 1217 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220723/e45de361/attachment.bin>


More information about the flang-commits mailing list