Note that I’m not sure whether this is valid F03 code or if only newer standard (F08 or even F18) allow this.
I’m not sure either. Though, it looks like both gfortran and ifort compile the code successfully, so we probably should as well. Hence, I’ve added a request for enhancement (RFE) and logged it as TPR#27995.