[Bug fortran/96025] [9/10/11 Regression] ICE in expr_check_typed_help, at fortran/expr.c:5437
kargl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 1 21:21:23 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96025
kargl at gcc dot gnu.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |kargl at gcc dot gnu.org
--- Comment #3 from kargl at gcc dot gnu.org ---
This fixes the ICE. Patch is against svn revision 280156.
e-ts.u.cl is a garbage pointer.
Index: gcc/fortran/expr.c
===================================================================
--- gcc/fortran/expr.c (revision 280157)
+++ gcc/fortran/expr.c (working copy)
@@ -3447,6 +3447,7 @@ gfc_specification_expr (gfc_expr *e)
{
gfc_error ("Expression at %L must be of INTEGER type, found %s",
&e->where, gfc_basic_typename (e->ts.type));
+ gfc_clear_ts (&e->ts);
return false;
}
More information about the Gcc-bugs
mailing list