[flang-commits] [flang] [flang] Fix crash resolving interface procedure type. (PR #162205)

via flang-commits flang-commits at lists.llvm.org
Tue Oct 7 07:03:53 PDT 2025


================
@@ -0,0 +1,13 @@
+! Check that expected code produced with no crash.
+subroutine reproducer()
+  use m2
+  use m3
----------------
jeanPerier wrote:

The test failure you are seeing in the windows bot most likely comes from module file clashes.
LIT tests are run in parallel in the same folder.

Any tests that relies on writing and then reading a module file should be run in a temporary directory to avoid any troubles (`m`, `m1`, `m2`... are quite common name. It is OK when the test is a single compilation unit, but when doing several steps, the related module file will very likely be overridden).

You can use:
```
! RUN: rm -rf %t && mkdir -p %t
```

Also, as a nit, I think tests using `-emit-fir/hlfir` should live in test/Lower (there are a few precedent, but I do not think it is best practice).  You can move it in test/Lower (there is no Input directory there, but you can achieve the same by making it single file test by using macros around the different steps of the compilation (see `./Semantics/modfile71.F90` for an example).

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


More information about the flang-commits mailing list