With 64-bit pgf90 13.9, on both Linux and OSX, the following compilation failure occurs:
PGF90-S-0310-Adjustable array can not have automatic bounds specifiers - tt (fciscvp.F90)
PGF90-S-0310-Adjustable array can not have automatic bounds specifiers - vv (fciscvp.F90)
0 inform, 0 warnings, 2 severes, 0 fatal for fci_scvp
which appears to relate to the following line of code:
The code compiled fine with all earlier versions of pgf90, and actually compiles with 32-bit pgf90 13.9 too, so I think it might be a bug in the 64-bit version of 13.9 compiler.
Thanks, done. After some experimentation it appears it’s an issue with -i8 flag; we only use this on 64-bit systems so that explains why we didn’t see it on 32-bit. For completeness the example is:
SUBROUTINE test(n)
IMPLICIT NONE
INTEGER, INTENT(in) :: n
TYPE my_type
CHARACTER(len=80) :: cname
END TYPE my_type
TYPE(my_type), DIMENSION(n) :: p
TYPE(my_type), DIMENSION(SIZE(p,1),5) :: t
END SUBROUTINE test
and the result of compiling it without and with -i8 flag is
> pgf90 -c test.f90
> pgf90 -c -i8 test.f90
PGF90-S-0310-Adjustable array can not have automatic bounds specifiers - t (test.f90)
0 inform, 0 warnings, 1 severes, 0 fatal for test