My first Post.
The Open64 Fortran Compiler does not Like
SIZE(Array, KIND= SELECTED_INT_KIND(12))
How do I get the Size of a (multimensional) Array,
that might have more Elements than 2**31-1?
Such a Construct seems to be allowed in Fortran2003.
The Intel Compiler accepts it, and gives the
correct Result. g95 accepts it, but gives a wrong Result.
I did not try other Compilers (yet).
I think you've partially answered your own question. The kind argument to the size intrinsic function is a Fortran 2003 feature. The fact is that x86 Open64 supports only Fortran 95, allocatable array arguments and the intrinsic iso_c_binding module.