[flang-commits] [flang] [Flang][Semantics] Allow EVENT_TYPE, LOCK_TYPE and NOTIFY TYPE to be deallocate (PR #192940)
Jean-Didier PAILLEUX via flang-commits
flang-commits at lists.llvm.org
Mon Apr 20 07:52:08 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
----------------
JDPailleux wrote:
Honestly, I reused the code from `flang/test/Semantics/allocate13.f90`, so I don't know why they do that, but I can use my own code without this module
https://github.com/llvm/llvm-project/pull/192940
More information about the flang-commits
mailing list