llvm-project
9462ce88 - [flang] Fix crash when handling benign USE conflict (#121977)

Commit
266 days ago
[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.
Author
Parents
Loading