Commit dd39f783 by Tobias Burnus Committed by Tobias Burnus

trans-expr.c (gfc_conv_initializer): Fix expr == NULL check.

2007-09-12  Tobias Burnus  <burnus@net-b.de>

	* trans-expr.c (gfc_conv_initializer): Fix expr == NULL check.

From-SVN: r128422
parent 75097504
2007-09-12 Tobias Burnus <burnus@net-b.de>
* trans-expr.c (gfc_conv_initializer): Fix expr == NULL check.
2007-09-12 Jan Hubicka <jh@suse.cz> 2007-09-12 Jan Hubicka <jh@suse.cz>
* f95-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill. * f95-lang.c (LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION): Kill.
......
...@@ -2855,7 +2855,8 @@ gfc_conv_initializer (gfc_expr * expr, gfc_typespec * ts, tree type, ...@@ -2855,7 +2855,8 @@ gfc_conv_initializer (gfc_expr * expr, gfc_typespec * ts, tree type,
(these are the only two iso_c_binding derived types that can be (these are the only two iso_c_binding derived types that can be
used as initialization expressions). If so, we need to modify used as initialization expressions). If so, we need to modify
the 'expr' to be that for a (void *). */ the 'expr' to be that for a (void *). */
if (expr->ts.type == BT_DERIVED && expr->ts.is_iso_c && expr->ts.derived) if (expr != NULL && expr->ts.type == BT_DERIVED
&& expr->ts.is_iso_c && expr->ts.derived)
{ {
gfc_symbol *derived = expr->ts.derived; gfc_symbol *derived = expr->ts.derived;
......
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