PSyclone icon indicating copy to clipboard operation
PSyclone copied to clipboard

Hoisting arrays with kind specifiers imported from a module doesn't hoist the import statement `HoistLocalArraysTrans`

Open LonelyCat124 opened this issue 7 months ago • 0 comments

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.

LonelyCat124 avatar Jul 22 '24 14:07 LonelyCat124