https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125311
Mikael Morin <mikael at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikael at gcc dot gnu.org
--- Comment #1 from Mikael Morin <mikael at gcc dot gnu.org> ---
Can't reproduce here; I get no error in both cases.
What is your gfortran --version?
Mine is the 16 branch from yesterday:
GNU Fortran (GCC) 16.1.1 20260513
Copyright (C) 2026 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Note that the 16.1 release has a serious -fcheck=bounds bug (see PR 125192),
but -fcheck=no-bounds coming after on the command line should prevent it from
happening.