[flang-commits] [flang] [flang] Assign sizes & offsets before instantiating some component types (PR #178927)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Fri Jan 30 10:55:29 PST 2026


================
@@ -441,10 +449,16 @@ void InstantiateHelper::InstantiateComponents(const Scope &fromScope) {
   // Instantiate symbols in declaration order; this ensures that
   // parent components and type parameters of ancestor types exist
   // by the time that they're needed.
+  std::list<Symbol *> newSymbols;
----------------
eugeneepshteyn wrote:

For cases of giant derived types (e.g., at least some versions of WRF), using `std::vector` may help with compilation time and memory usage.

https://github.com/llvm/llvm-project/pull/178927


More information about the flang-commits mailing list