https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99765
--- Comment #4 from Nick <nickpapior at gmail dot com> --- I see. I can't seem to find the mentioned line in f2003. I don't know if anything needs to be done. If the programmer expected something different than the last dimension specifier, they would very quickly figure out that it doesn't work as intended. In any case, I would be fine if this is marked as invalid and you left it as it is since f2008 denotes this as valid code. By the way real, dimension(10), allocatable :: a(10) is currently still recognized as an error (as I also mentioned). So basically everything is fine. Sorry for the blurp.