We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 74c37a1 + 9289c42 commit 49545feCopy full SHA for 49545fe
test/shallow_m.f90
@@ -27,7 +27,7 @@ function construct() result(shallow)
27
call shallow%start_counter
28
end function
29
30
- subroutine free(self)
+ impure elemental subroutine free(self)
31
class(shallow_t), intent(inout) :: self
32
33
deallocate(resource)
test/sp_smart_pointer_test_m.F90
@@ -56,7 +56,7 @@ function construct() result(object)
56
call object%start_counter
57
58
59
60
class(object_t), intent(inout) :: self
61
62
if (allocated(the_resource)) deallocate(the_resource)
0 commit comments