Commit b1adb7c4 by Tobias Burnus Committed by Tobias Burnus

re PR fortran/57912 (gfortran/coarray/alloc_comp_2.f90 ICE)

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

        PR fortran/57912
        * trans-expr.c (gfc_trans_scalar_assign): Correct if
        condition for caf realloc.

From-SVN: r200987
parent c694dc01
2013-07-16 Tobias Burnus <burnus@net-b.de>
PR fortran/57912
* trans-expr.c (gfc_trans_scalar_assign): Correct if
condition for caf realloc.
2013-07-15 Tobias Burnus <burnus@net-b.de> 2013-07-15 Tobias Burnus <burnus@net-b.de>
* trans-array.h (gfc_deallocate_alloc_comp_no_caf, * trans-array.h (gfc_deallocate_alloc_comp_no_caf,
......
...@@ -6857,9 +6857,8 @@ gfc_trans_scalar_assign (gfc_se * lse, gfc_se * rse, gfc_typespec ts, ...@@ -6857,9 +6857,8 @@ gfc_trans_scalar_assign (gfc_se * lse, gfc_se * rse, gfc_typespec ts,
fold_convert (TREE_TYPE (lse->expr), rse->expr)); fold_convert (TREE_TYPE (lse->expr), rse->expr));
/* Restore pointer address of coarray components. */ /* Restore pointer address of coarray components. */
if (ts.u.derived->attr.coarray_comp && deep_copy) if (ts.u.derived->attr.coarray_comp && deep_copy && tmp_var != NULL_TREE)
{ {
gcc_assert (tmp_var != NULL_TREE);
tmp = gfc_reassign_alloc_comp_caf (ts.u.derived, tmp_var, lse->expr); tmp = gfc_reassign_alloc_comp_caf (ts.u.derived, tmp_var, lse->expr);
tmp = build3_v (COND_EXPR, cond, build_empty_stmt (input_location), tmp = build3_v (COND_EXPR, cond, build_empty_stmt (input_location),
tmp); tmp);
......
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