[flang] Fix crash in semantics after PDT instantiation
The code in semantics that reinitializes symbol table pointers in the parse tree of a parameterized derived type prior to a new instantiation of the type was processing the symbols of the derived type instantiation scope in arbitrary address order, which could fail if a reference to a type parameter inherited from an ancestor type was processed prior to the parent component sequence. Fix by instantiating components of PDT instantiations in declaration order. Differential Revision: https://reviews.llvm.org/D126147
Loading
Please sign in to comment