Skip to content

Commit 9f20397

Browse files
[flang] Add missing symbol names to the error message (#148888)
Fixes #140485
1 parent 2206c7d commit 9f20397

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

flang/lib/Semantics/resolve-names.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8574,8 +8574,10 @@ bool ResolveNamesVisitor::Pre(const parser::ImportStmt &x) {
85748574
} else {
85758575
Say(name,
85768576
"A distinct '%s' is already present in this scope"_err_en_US)
8577-
.Attach(symbol->name(), "Previous declaration of '%s'"_en_US)
8578-
.Attach(outer->name(), "Declaration of '%s' in host scope"_en_US);
8577+
.Attach(symbol->name(), "Previous declaration of '%s'"_en_US,
8578+
symbol->name().ToString())
8579+
.Attach(outer->name(), "Declaration of '%s' in host scope"_en_US,
8580+
outer->name().ToString());
85798581
}
85808582
}
85818583
} else {

0 commit comments

Comments
 (0)