[flang-commits] [flang] 18f2628 - [flang] Changed the warning as recommended.
Peter Steinfeld via flang-commits
flang-commits at lists.llvm.org
Thu Apr 9 08:15:38 PDT 2020
Author: Peter Steinfeld
Date: 2019-07-10T12:53:56-07:00
New Revision: 18f26282873ae0af687a224bfb9a396862c4c9b8
URL: https://github.com/llvm/llvm-project/commit/18f26282873ae0af687a224bfb9a396862c4c9b8
DIFF: https://github.com/llvm/llvm-project/commit/18f26282873ae0af687a224bfb9a396862c4c9b8.diff
LOG: [flang] Changed the warning as recommended.
Original-commit: flang-compiler/f18 at 7887331705113619c0710f7052da390b2ac188e3
Reviewed-on: https://github.com/flang-compiler/f18/pull/551
Tree-same-pre-rewrite: false
Added:
Modified:
flang/lib/semantics/resolve-names.cc
Removed:
################################################################################
diff --git a/flang/lib/semantics/resolve-names.cc b/flang/lib/semantics/resolve-names.cc
index 3a28aa0e70ac..7c0d2c7afef4 100644
--- a/flang/lib/semantics/resolve-names.cc
+++ b/flang/lib/semantics/resolve-names.cc
@@ -4107,8 +4107,8 @@ bool ConstructVisitor::Pre(const parser::LocalitySpec::Shared &x) {
for (const auto &name : x.v) {
if (!FindSymbol(name)) {
Say(name,
- "Warning, variable '%s' with SHARED locality allocated"
- " automatically and may be uninitialized"_en_US);
+ "Variable '%s' with SHARED locality implicitly"
+ " declared and may be uninitialized"_en_US);
}
Symbol &prev{FindOrDeclareEnclosingEntity(name)};
if (PassesSharedLocalityChecks(name, prev)) {
More information about the flang-commits
mailing list