Commit 45db6b0d by Tobias Burnus Committed by Tobias Burnus

re PR fortran/57556 ([OOP] ICE with move_alloc on polymorphic component with -fcheck=all)

2013-06-07  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57556
        * trans.c (gfc_build_final_call): Init block before use.

From-SVN: r199812
parent b31ddbdb
2013-06-07 Tobias Burnus <burnus@net-b.de>
PR fortran/57556
* trans.c (gfc_build_final_call): Init block before use.
2013-06-06 Tobias Burnus <burnus@net-b.de>
PR fortran/57542
......
......@@ -852,6 +852,7 @@ gfc_build_final_call (gfc_typespec ts, gfc_expr *final_wrapper, gfc_expr *var,
gcc_assert (final_wrapper->expr_type == EXPR_VARIABLE);
gcc_assert (var);
gfc_start_block (&block);
gfc_init_se (&se, NULL);
gfc_conv_expr (&se, final_wrapper);
final_fndecl = se.expr;
......@@ -936,7 +937,6 @@ gfc_build_final_call (gfc_typespec ts, gfc_expr *final_wrapper, gfc_expr *var,
if (!POINTER_TYPE_P (TREE_TYPE (array)))
array = gfc_build_addr_expr (NULL, array);
gfc_start_block (&block);
gfc_add_block_to_block (&block, &se.pre);
tmp = build_call_expr_loc (input_location,
final_fndecl, 3, array,
......
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