Hello,
This piece of code triggers a compiler error :
MODULE COPY_GEOMETRY_MOD
TYPE TVAB
REAL, ALLOCATABLE :: VALH(:)
END TYPE TVAB
TYPE, PUBLIC :: GEOMETRY
TYPE(TVAB),POINTER :: YRVAB
END TYPE GEOMETRY
CONTAINS
SUBROUTINE COPY_GEOMETRY (YD)
IMPLICIT NONE
TYPE (GEOMETRY), INTENT (IN) :: YD
!$acc enter data attach (YD%YRVAB)
END SUBROUTINE
END MODULE
Attempting to compile yields:
[ufh62jk@jean-zay2: bug.21.9]$ pgf90 --version
pgf90 (aka nvfortran) 21.9-0 64-bit target on x86-64 Linux -tp skylake
PGI Compilers and Tools
Copyright (c) 2021, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
[ufh62jk@jean-zay2: bug.21.9]$ pgf90 -mp -byteswapio -Mlarge_arrays -fast -acc=gpu -Minfo=accel,all,intensity,ccff -gpu=lineinfo -O3 -Mcuda -DUSE_ACC -DUSE_STACK -c copy_geometry_mod.F90
NVFORTRAN-S-0000-Internal compiler error. exp_call:bad ili for BYVAL 0 (copy_geometry_mod.F90: 20)
copy_geometry:
20, Generating enter data attach(yd%yrvab)
0 inform, 0 warnings, 1 severes, 0 fatal for copy_geometry
The error appears with the 21.9 version; no problem with the 21.7.
Philippe