[flang-commits] [flang] [Flang] Fix grammar in pointer assignment error message (PR #150909)
via flang-commits
flang-commits at lists.llvm.org
Mon Jul 28 02:31:18 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-flang-semantics
Author: Sekar (Sekar-C-Mca)
<details>
<summary>Changes</summary>
This PR corrects a grammatical mistake in an error message emitted during pointer assignment checks in Flang.
The message previously read:
"%s is associated with the result of a reference to function '%s' that is a not a pointer"
The extra "a" before "not a pointer" has been removed.
---
Full diff: https://github.com/llvm/llvm-project/pull/150909.diff
1 Files Affected:
- (modified) flang/lib/Semantics/pointer-assignment.cpp (+1-1)
``````````diff
diff --git a/flang/lib/Semantics/pointer-assignment.cpp b/flang/lib/Semantics/pointer-assignment.cpp
index 090876912138a..47973cca35654 100644
--- a/flang/lib/Semantics/pointer-assignment.cpp
+++ b/flang/lib/Semantics/pointer-assignment.cpp
@@ -281,7 +281,7 @@ bool PointerAssignmentChecker::Check(const evaluate::FunctionRef<T> &f) {
" function '%s' that is a procedure pointer"_err_en_US;
} else if (!funcResult->attrs.test(FunctionResult::Attr::Pointer)) {
msg = "%s is associated with the result of a reference to function '%s'"
- " that is a not a pointer"_err_en_US;
+ " that is not a pointer"_err_en_US;
} else if (isContiguous_ &&
!funcResult->attrs.test(FunctionResult::Attr::Contiguous)) {
auto restorer{common::ScopedSet(lhs_, symbol)};
``````````
</details>
https://github.com/llvm/llvm-project/pull/150909
More information about the flang-commits
mailing list