[flang-commits] [flang] [flang] Avoid exponential traversal in deep type extensions (PR #191955)
Sairudra More via flang-commits
flang-commits at lists.llvm.org
Thu Apr 16 21:17:03 PDT 2026
================
@@ -0,0 +1,125 @@
+! RUN: %flang_fc1 -fsyntax-only %s 2>&1
+! Regression test: deeply nested type extensions with LEN parameters
+! must not cause exponential compile time in HasDestruction().
+
+module m
+ implicit none
----------------
Saieiei wrote:
Added a finalizable deep-extension case to `typesstress5.f90`, so the `IsFinalizable()` path is covered as well. I also updated the test comment to reflect both paths. Thanks!
https://github.com/llvm/llvm-project/pull/191955
More information about the flang-commits
mailing list