[flang-commits] [flang] [flang] A module that USEs itself directly in its specification part … (PR #228489)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Mon Oct 19 08:57:44 PDT 2026


================
@@ -0,0 +1,5 @@
+! RUN: %python %S/test_errors.py %s %flang_fc1
+module m
+  !ERROR: Module 'm' cannot USE itself
+  use m
+end module m
----------------
eugeneepshteyn wrote:

Could these cases go into the existing `self-use.f90` instead of a new file? May need to change names a bit, but should be able to add new tests there.

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


More information about the flang-commits mailing list