Lowering Error: symbol r$sd is an inconsistent array descriptor

Hi,
The following code does not compile with nvfortran 24.5:

module Mod_ListContainer
   implicit none

   type :: CSRList
       real(8), allocatable    :: r(:)
    end type

   type :: ListContainer
      type(CSRList) :: AnotherList
contains
   end type  
contains
   
   subroutine ASubroutine(a)
      implicit none
      class(ListContainer), target :: a
      real(8),allocatable :: OneList(:)
      allocate(a%AnotherList%r(12))
      call move_alloc(a%AnotherList%r,OneList)
   end subroutine

end module

it returns the error:
Lowering Error: symbol r$sd is an inconsistent array descriptor
Lowering Error: symbol r$sd is an inconsistent array descriptor
Lowering Error: symbol r$sd is an inconsistent array descriptor
NVFORTRAN-F-0000-Internal compiler error. Errors in Lowering 3 (…/…/Sources/Adaptive/Isotropic/Mod_IsotropicAdaptiveRefiner_testnvidia.f90: 25)

Thanks for the help!

Hey again joan.baiges! I just reported this as issue #35954 with engineering. When I hear back about a fix getting into the compiler, I’ll give you an update! As always, thanks for bringing this to our attention! These fixes make the compiler better for everyone, which is important.

Good news - a fix for this has made its way into our current internal development compiler and should be included in our 24.9 release of the NVHPC SDK. Thank you for highlighting this issue to us - you’ve contributed to making a better compiler!

Hi joan.baiges - this issue should be fixed in the latest release of the compiler (24.9). Please let us know if you run into any more issues! Thank you for letting us know about this problem.