[flang-commits] [flang] [flang] Reject MODULE prefix in abstract interface body (PR #212980)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Fri Jul 31 06:28:20 PDT 2026


================
@@ -97,3 +97,12 @@ module subroutine b
 real module function c1547()
   func = 0.0
 end function
+
+module mod_test
+abstract interface
+  !ERROR: 'f1' has MODULE prefix, which is not allowed in an ABSTRACT interface body
+  pure integer module function f1(i)
----------------
eugeneepshteyn wrote:

Let's also add `module subroutine` case, as well as a test case for an abstract body in submodule scope.



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


More information about the flang-commits mailing list