https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98490
--- Comment #2 from Fran Martinez Fadrique <ffadrique at gmail dot com> --- I am not sure to understand the question The gfortran version is gcc version 9.3.0 (Ubuntu 9.3.0-17ubuntu1~20.04) It also appear with gcc version 11.0.0 20201220 (experimental) (GCC) also in Ubuntu In case it was not clear in my initial statement, it only appears when the flag -fbound-check is used. Otherwise the behaviour seems fine.