https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93500
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Thomas Kथà¤nig <tkoe...@gcc.gnu.org>: https://gcc.gnu.org/g:4dc6437183aec5439b88b076315ad8f31794d24b commit r10-7795-g4dc6437183aec5439b88b076315ad8f31794d24b Author: Thomas König <tkoe...@gcc.gnu.org> Date: Sun Apr 19 12:56:32 2020 +0200 Fix PR fortran/93500, ICE on invalid. Returning &gfc_bad_expr when simplifying bounds after a divisin by zero happened results in the division by zero error actually reaching the user. 2020-04-19 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/93500 * resolve.c (resolve_operator): If both operands are NULL, return false. * simplify.c (simplify_bound): If a division by zero was seen during bound simplification, free the corresponcing expression and return &gfc_bad_expr. 2020-04-19 Thomas Koenig <tkoe...@gcc.gnu.org> PR fortran/93500 * arith_divide_3.f90: New test.