https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113799
anlauf at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |anlauf at gcc dot gnu.org
--- Comment #7 from anlauf at gcc dot gnu.org ---
Created attachment 57366
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57366&action=edit
Patch
This patch changes reduce_unary to continue in the case of overflow
encountered during walking through array ctors and returning the error
at the end.
This also fixes other simple examples like:
integer, parameter :: n = huge(1)
integer, parameter :: m(*) = [-(n + 1)]
print *, -m
end