[all-commits] [llvm/llvm-project] 9462ce: [flang] Fix crash when handling benign USE conflic...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Wed Jan 8 13:15:45 PST 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9462ce885b2a067fdd20568ba9105489f3b34c53
https://github.com/llvm/llvm-project/commit/9462ce885b2a067fdd20568ba9105489f3b34c53
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2025-01-08 (Wed, 08 Jan 2025)
Changed paths:
M flang/lib/Semantics/resolve-names.cpp
A flang/test/Semantics/bug121718.f90
Log Message:
-----------
[flang] Fix crash when handling benign USE conflict (#121977)
When the same name is used for distinct derived types in two modules,
and at least one of those modules also defines a generic interface of
the same name, name resolution crashes when both modules are USE'd into
the same scope. The crash is due to some pointers into the symbol table
becoming invalid when a symbol is replaced with a UseErrorDetails; set
them to null. Also allow for extending a UseErrorDetails in place rather
than emitting a spurious error message.
Fixes https://github.com/llvm/llvm-project/issues/121718.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list