When I try to use pgf95 compiler on some fortran code I received from other people. I got this error:
PGF90-S-0310-Adjustable array can not have automatic bounds specifiers - dz (Chck_HD_Stblty.f: 13)
PGF90-S-0310-Adjustable array can not have automatic bounds specifiers - dzz (Chck_HD_Stblty.f: 13)
Line 13 of the aforementioned script is:
“integer DZ(KB+1),DZZ(KB+1)”
The shell script to call the compiler is:
“pgf95 -byteswapio -Mextend chck_HD_stblty.f”
I tried to search for this “KB” but couldn’t find it declared anywhere. And then I just realized that it might be a typo. There is a “KBM1” declared earlier in the script and this “KB+1” should have been “KBM1”…
We did have an issue with two of the RC files (our compiler config files) when running pgf77 on Windows with 19.4, which gave this error. The error was fix in 19.5.
If this is the case for you, the work around would be to use pgfortran instead of pgf77.
19.5 was released in May but is only available to Professional Edition license holders. If you do have a Professional Edition, you can download the most current release (19.7) from the downloads link at the top of this page or 19.5 from the archive versions.