[Bug fortran/32594] substring simplification leads to ICE
fxcoudert at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Aug 14 12:45:00 GMT 2007
------- Comment #8 from fxcoudert at gcc dot gnu dot org 2007-08-14 12:44 -------
Subject: Bug 32594
Author: fxcoudert
Date: Tue Aug 14 12:44:19 2007
New Revision: 127478
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127478
Log:
PR fortran/32594
* trans-expr.c (gfc_conv_substring_expr): Only call
gfc_conv_substring if expr->ref is not NULL.
* expr.c (gfc_is_constant_expr): If e->ref is NULL, the substring
expression might be a constant.
(gfc_simplify_expr): Handle missing start and end, as well as
missing ref.
* gfortran.dg/substr_5.f90: New test.
Added:
trunk/gcc/testsuite/gfortran.dg/substr_5.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/expr.c
trunk/gcc/fortran/trans-expr.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32594
More information about the Gcc-bugs
mailing list