We're having some difficulties in compiling some source that uses a PARAMETER to dimension an array. However, the error only comes up under certain circumstances. The error message we receive is:
error #6219: A specification expression object must be a dummy argument, a COMMON block object, or an object accessible through host or use association [CONSTINT]
Compile command used was "ifort -c -warn interfaces ifort6219.for". If you remove the "-warn interfaces", it works. If you remove the "header guards", it works. If you remove the call to an unrelated subroutine, it works. Al three together, and you get a #6219 error.
> ifort -version
Intel(R) Visual Fortran Compiler XE for applications running on IA-32, Version 13.0.0.089 Build 20120731
$ ifort -V
Intel(R) Fortran Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 184.108.40.206 Build 20110427
(The error is encountered on both Windows and Linux, so I included the versions of both platforms we were testing it on. Posting it here, because this is where I spend most of my time.)