[flang-commits] [PATCH] D126490: [nfc][flang] Fix spelling errors and usage in an error message
Peter Klausler via Phabricator via flang-commits
flang-commits at lists.llvm.org
Thu May 26 11:03:37 PDT 2022
klausler created this revision.
klausler added a reviewer: peixin.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
Herald added a project: All.
klausler requested review of this revision.
https://reviews.llvm.org/D126490
Files:
flang/lib/Semantics/check-call.cpp
flang/test/Semantics/call02.f90
Index: flang/test/Semantics/call02.f90
===================================================================
--- flang/test/Semantics/call02.f90
+++ flang/test/Semantics/call02.f90
@@ -126,9 +126,8 @@
subroutine p05
integer :: a1(2), a2, a3
-
- !ERROR: In an elemental procedure with at least one array arugment, actual argument a2 that corresponds to an INTENT(OUT) or INTENT(INOUT) dummay argument must be an array
- !ERROR: In an elemental procedure with at least one array arugment, actual argument a3 that corresponds to an INTENT(OUT) or INTENT(INOUT) dummay argument must be an array
+ !ERROR: In an elemental procedure reference with at least one array argument, actual argument a2 that corresponds to an INTENT(OUT) or INTENT(INOUT) dummy argument must be an array
+ !ERROR: In an elemental procedure reference with at least one array argument, actual argument a3 that corresponds to an INTENT(OUT) or INTENT(INOUT) dummy argument must be an array
call s1(a1, a2, a3)
contains
elemental subroutine s1(a, b, c)
@@ -139,4 +138,3 @@
c = a
end
end
-
Index: flang/lib/Semantics/check-call.cpp
===================================================================
--- flang/lib/Semantics/check-call.cpp
+++ flang/lib/Semantics/check-call.cpp
@@ -865,7 +865,7 @@
dummy.GetIntent() == common::Intent::InOut) &&
hasArrayArg) {
messages.Say(
- "In an elemental procedure with at least one array arugment, actual argument %s that corresponds to an INTENT(OUT) or INTENT(INOUT) dummay argument must be an array"_err_en_US,
+ "In an elemental procedure reference with at least one array argument, actual argument %s that corresponds to an INTENT(OUT) or INTENT(INOUT) dummy argument must be an array"_err_en_US,
expr->AsFortran());
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126490.432333.patch
Type: text/x-patch
Size: 1875 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20220526/5908e13a/attachment.bin>
More information about the flang-commits
mailing list