[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
Fri Jul 22 12:12:38 PDT 2022
klausler created this revision.
klausler added a reviewer: PeteSteinfeld.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.
It should be A= but I misspelled it in the intrinsics table as X=.
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.446929.patch
Type: text/x-patch
Size: 1217 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220722/0b9e5f79/attachment-0001.bin>
More information about the flang-commits
mailing list