Internal compiler error on !$acc enter data attach

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

Hi Philippe,

This was a known issue in 21.9 that was fixed in 21.11.

% nvfortran -acc test.F90 -c -V21.7
% nvfortran -acc test.F90 -c -V21.9
NVFORTRAN-S-0000-Internal compiler error. exp_call:bad ili for BYVAL       0  (test.F90: 21)
  0 inform,   0 warnings,   1 severes, 0 fatal for copy_geometry
% nvfortran -acc test.F90 -c -V21.11
%

Please update your compiler to a later version.

-Mat

Thank you Mat, 21.11 is not available on JeanZay, but I will ask.