compilation failure with pgf90 13.9

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:

 TYPE(scvpAmplitude), DIMENSION(SIZE(p,1),ihislimit) :: tt,vv

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,

Andy

Hi Andy,

Can you send PGI Customer Service (trs@pgroup.com) a reproducing example?

Thanks,
Mat

Mat,

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

Thanks,

Andy

Thanks Andy. We appreciate you narrowing this down for us. I added a problem report (TPR#19633) and sent it on to engineering for investigation.

  • Mat

19633 - User code gets error “Adjustable array can not have automatic bounds specifiers” with -i8

This problem is fixed in the current 14.1 release.

thanks,
dave