Illegal use of derived type with pgf90 15.3

HI,

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?

Thanks,

Andy

Thanks Andy. I was able to reproduce the error here and have sent it on to our compiler engineers for further investigation. Referenced as TPR#21431.

  • Mat

TPR 21431 - UF: User gets syntax error “Illegal use of derived type” with code that compiled in 14.10

has been fixed in the 15.5 release, now available.