[flang-commits] [flang] [flang] only instantiate required symbols from parent modules (PR #193689)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Thu Apr 23 07:28:47 PDT 2026


================
@@ -0,0 +1,19 @@
+! Test that host module variables are not instantiated inside
----------------
eugeneepshteyn wrote:

What about here:
```
module m
  integer :: a, b, c
  equivalence (a, b)
contains
  subroutine foo()
    a = 1
  end subroutine
end module
```
`a` and `c` should be instantiated, but not `b`, right?

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


More information about the flang-commits mailing list