https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102903
Thomas Koenig <tkoenig at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tkoenig at gcc dot gnu.org
--- Comment #2 from Thomas Koenig <tkoenig at gcc dot gnu.org> ---
(In reply to Dominique d'Humieres from comment #1)
> Confirmed. The test pr17143.f90 relies on wrapping on overflow, so it's
> probably
> a WONTFIX. Reduced test for power_8.f90:
>
> integer(1) :: j
> j = 7
> print *, (-2_1) ** j
> print *, (-512_8) ** j
> end
>
> There are no runtime errors if I replace j with 7.
We could then add -fwrapv to the options there.