From 91be723e1cf4a8fb1afab1f87933518604a667bb Mon Sep 17 00:00:00 2001 From: Jeremie Vandenplas Date: Sun, 14 Jul 2024 22:15:45 +0200 Subject: [PATCH] change allocate statement --- src/stdlib_hashmap_chaining.f90 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stdlib_hashmap_chaining.f90 b/src/stdlib_hashmap_chaining.f90 index cca4a41a8..dd0db1579 100644 --- a/src/stdlib_hashmap_chaining.f90 +++ b/src/stdlib_hashmap_chaining.f90 @@ -349,7 +349,8 @@ module subroutine get_other_chaining_data( map, key, other, exists ) else if ( associated( map % inverse(inmap) % target ) ) then print*,'bbbb1' if (present(exists) ) exists = .true. - other = map % inverse(inmap) % target % other + !other = map % inverse(inmap) % target % other + allocate(other, source=map % inverse(inmap) % target % other) else print*,'bbbb2' if ( present(exists) ) then