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

anlauf at gcc dot gnu.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|fortran                     |driver
                 CC|                            |anlauf at gcc dot gnu.org
      Known to work|                            |8.5.0

--- Comment #9 from anlauf at gcc dot gnu.org ---
Changing component from fortran to driver after brief discussion:

  https://gcc.gnu.org/pipermail/fortran/2026-May/063915.html

The expected behavior (see below) existed in 8.5.0 and likely until r9-3689,
when gcc/d/lang.opt was added defining an Alias

fcheck=bounds
D Alias(fbounds-check)

However, the language seems not to be taken into account when applying
the alias.

So in some (technical) sense this is a regression which likely started
after version 8.5.0.

Note: in 8.5.0

  gfortran -fcheck=bounds -fcheck=no-bounds

works as expected, while

  gfortran -fbounds-check -fcheck=no-bounds

does not.  In gfortran -fbounds-check is treated differently from the
generic form -fcheck=, which is why the Alias poses a problem for languages
other than D.

Reply via email to