Commit 71690b03 by Eric Botcazou Committed by Eric Botcazou

* trans-array.c (gfc_conv_array_parameter): Guard union access.

From-SVN: r142283
parent 44b55e85
2008-11-29 Eric Botcazou <ebotcazou@adacore.com>
* trans-array.c (gfc_conv_array_parameter): Guard union access.
2008-11-29 Janus Weil <janus@gcc.gnu.org>
Mikael Morin <mikael@gcc.gnu.org>
......
......@@ -5206,7 +5206,8 @@ gfc_conv_array_parameter (gfc_se * se, gfc_expr * expr, gfc_ss * ss, int g77,
stmtblock_t block;
full_array_var = (expr->expr_type == EXPR_VARIABLE
&& expr->ref->u.ar.type == AR_FULL);
&& expr->ref->type == REF_ARRAY
&& expr->ref->u.ar.type == AR_FULL);
sym = full_array_var ? expr->symtree->n.sym : NULL;
/* The symbol should have an array specification. */
......
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