[flang-commits] [flang] [flang][runtime] Validate pointer DEALLOCATE (PR #78612)
Peter Klausler via flang-commits
flang-commits at lists.llvm.org
Sat Jan 27 10:45:54 PST 2024
================
@@ -454,7 +454,9 @@ class AllocateStmtHelper {
const fir::MutableBoxValue &box) {
if (!box.isDerived() && !errorManager.hasStatSpec() &&
!alloc.type.IsPolymorphic() && !alloc.hasCoarraySpec() &&
- !useAllocateRuntime) {
+ !useAllocateRuntime && !box.isPointer()) {
----------------
klausler wrote:
https://github.com/llvm/llvm-project/pull/79702
https://github.com/llvm/llvm-project/pull/78612
More information about the flang-commits
mailing list