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

--- Comment #14 from kargls at comcast dot net ---
On 6/28/26 12:32, tkoenig at gcc dot gnu.org wrote:
> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=125458
> 
> --- Comment #12 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
> (In reply to Steve Kargl from comment #11)
> 
>> The finger points at Harald.
> 
> That patch did not introduce the behavior, the regression is far older.
> Checking on godbolt, gfortran 7.1 has

Yes, I know it has been pointed out that the regression
goes back beyond Harald's patch.  Problem is that patch
now gets in the way as it changed several places to
try to make error handling consistent.  If you hack
is_hard_arith_error() to return true, because an
overflow and -frange-check should produce an error,
one gets an ICE.  The ICE occurs in an irrelevant code
path for your 3-line Fortran program.  So, now one needs
to workaround a irrelevant code path to get to yet
another ICE.

Reply via email to