[flang-commits] [flang] [FLANG][Semantics] Add check for DATA statement in interface body. (PR #221397)

via flang-commits flang-commits at lists.llvm.org
Mon Sep 14 10:59:19 PDT 2026


================
@@ -0,0 +1,11 @@
+! RUN: %python %S/test_errors.py %s %flang_fc1
+
+interface
+  subroutine s
+    integer :: x
+    !ERROR: A DATA statement may not appear in an interface body
+    data x /1/
+  end subroutine
+end interface
+
+end
----------------
laoshd wrote:

Fixed.

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


More information about the flang-commits mailing list