I vaguely remember reading not too long ago that there was a plan for all fortran intrinsics to accept a KIND argument - now I can't remember if this was for a future version of the standard or for F2018.
Today (in Intel ifort classic 2021.5.0) the following syntax
RANK(SOME_ARRAY, KIND = SOME_INTEGER_KIND)
is not valid. Is this an oversight? Am I simply ahead of the curve? Or (not entirely impossible) am I making all this thing up?
You're way ahead of the curve, Fortran is not scheduled to support a rank for arrays > 15 anytime soon, and the result of RANK intrinsic shall remain that of default integer. In the meantime, you may even find the following in your own codes!
int( rank(a), kind=.. )