Commit e0f6835d by Jerry DeLisle

re PR fortran/33609 (ICE on arithmetic overflow)

2007-10-06  Jerry DeLisle  <jvdelisle@gcc.gnu.org>

	PR fortran/33609
	* simplify.c (range_check): Return gfc_bad_expr if incoming expression 
	is NULL.

From-SVN: r129059
parent 049d2422
2007-10-06 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/33609
* simplify.c (range_check): Return gfc_bad_expr if incoming expression
is NULL.
2007-10-06 Tobias Schlter <tobi@gcc.gnu.org> 2007-10-06 Tobias Schlter <tobi@gcc.gnu.org>
* simplify.c (gfc_simplify_size): Fix typo. * simplify.c (gfc_simplify_size): Fix typo.
......
...@@ -70,6 +70,9 @@ gfc_expr gfc_bad_expr; ...@@ -70,6 +70,9 @@ gfc_expr gfc_bad_expr;
static gfc_expr * static gfc_expr *
range_check (gfc_expr *result, const char *name) range_check (gfc_expr *result, const char *name)
{ {
if (result == NULL)
return &gfc_bad_expr;
switch (gfc_range_check (result)) switch (gfc_range_check (result))
{ {
case ARITH_OK: case ARITH_OK:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment