PSyclone
PSyclone copied to clipboard
Hoisting arrays with kind specifiers imported from a module doesn't hoist the import statement `HoistLocalArraysTrans`
In this code
module my_mod
...
contains
subroutine my_sub(...)
use realtype, only: my_real
real(kind = my_real), allocatable, dimension(:,:) :: my_array
end subroutine
end module
When the my_array
is hoisted to the module in the transformation scripts (using HoistLocalArraysTrans
) the my_real
declaration isn't hoisted into the module, so the code doesn't compile.