[flang-commits] [flang] [flang] Fix crash when handling benign USE conflict (PR #121977)
Eugene Epshteyn via flang-commits
flang-commits at lists.llvm.org
Wed Jan 8 10:10:03 PST 2025
================
@@ -3319,6 +3323,8 @@ void ModuleVisitor::DoAddUse(SourceName location, SourceName localName,
combinedDerivedType = CreateLocalUseError();
} else {
ConvertToUseError(*localSymbol, location, *useModuleScope_);
+ localDerivedType = nullptr;
+ localGeneric = nullptr;
----------------
eugeneepshteyn wrote:
If we got to the `else` clause, then `localGeneric` should already be null
https://github.com/llvm/llvm-project/pull/121977
More information about the flang-commits
mailing list