https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125311

--- Comment #3 from Andy May <ajmay81 at gmail dot com> ---
(In reply to Mikael Morin from comment #1)
> 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.

I've seen with:

gcc version 15.1.1 20250714 (SUSE Linux)

and

gcc version 16.0.1 20260425 (prerelease) (SUSE Linux)

Thanks for the note about PR 125192, we are in fact exposed to this which is
what lead me to discover this issue.

Reply via email to