We’re having trouble compiling a piece of code with pgf90 15.3, which compiles fine with 14.10 and other compilers, so perhaps it’s a bug in the compiler. A cut down of the code is:
subroutine test() implicit none type BasisFN integer sym end type Type(BasisFN), pointer :: G1(:) integer, dimension(2) :: orbs, syms orbs(1) = 1 orbs(2) = 2 syms = int(G1(orbs)%Sym) end subroutine test
and the resulting error is:
PGF90-S-0099-Illegal use of derived type (test.f90: 10) 0 inform, 0 warnings, 1 severes, 0 fatal for test
Could you take a look?