Index: flang/lib/Semantics/type.cpp =================================================================== --- flang/lib/Semantics/type.cpp +++ flang/lib/Semantics/type.cpp @@ -368,7 +368,6 @@ } // Instantiate every non-parameter symbol from the original derived // type's scope into the new instance. - newScope.AddSourceRange(typeScope.sourceRange()); auto restorer2{foldingContext.messages().SetContext(contextMessage)}; if (PlumbPDTInstantiationDepth(&containingScope) > 100) { foldingContext.messages().Say(