[flang-commits] [flang] [Flang][Semantics] Allow EVENT_TYPE, LOCK_TYPE and NOTIFY TYPE to be deallocate (PR #192940)

Dan Bonachea via flang-commits flang-commits at lists.llvm.org
Mon Apr 20 07:00:36 PDT 2026


================
@@ -0,0 +1,55 @@
+! RUN: %python %S/test_errors.py %s %flang_fc1
+! Check there are no semantic errors in DEALLOCATE statements with EVENT_TYPE and LOCK_TYPE.
+
+! CHECK-NOT: Object in DEALLOCATE statement is not deallocatable
+
+module not_iso_fortran_env
+  type event_type
+  end type
+  type lock_type
+  end type
+end module
----------------
bonachea wrote:

What is the purpose of this block?

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


More information about the flang-commits mailing list