diff options
| author | pault <pault@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-28 05:29:44 +0000 |
|---|---|---|
| committer | pault <pault@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-04-28 05:29:44 +0000 |
| commit | 6a2a96d6601b2da061ff52bcf803e2cc044af1fd (patch) | |
| tree | 4d51ca87e6dcb5e942426982d9b3294b23b6ba85 /gcc/fortran/trans-expr.c | |
| parent | e5387fb99fe093bfb88341e8dfc667ea3556c307 (diff) | |
| download | ppe42-gcc-6a2a96d6601b2da061ff52bcf803e2cc044af1fd.tar.gz ppe42-gcc-6a2a96d6601b2da061ff52bcf803e2cc044af1fd.zip | |
2009-04-28 Paul Thomas <pault@gcc.gnu.org>
PR fortran/39879
* trans_expr.c (gfc_conv_procedure_call): Deep copy a derived
type parentheses argument if it is a variable with allocatable
components.
2009-04-28 Paul Thomas <pault@gcc.gnu.org>
PR fortran/39879
* gfortran.dg/alloc_comp_assign_10.f90: New test.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@146872 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/trans-expr.c')
| -rw-r--r-- | gcc/fortran/trans-expr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c index 77a2dfae356..a541a79eb33 100644 --- a/gcc/fortran/trans-expr.c +++ b/gcc/fortran/trans-expr.c @@ -1119,8 +1119,7 @@ gfc_conv_string_tmp (gfc_se * se, tree type, tree len) gfc_add_modify (&se->pre, var, tmp); /* Free the temporary afterwards. */ - tmp = gfc_call_free (var, true, &gfc_current_locus, - ALLOCTYPE_TEMPORARY); + tmp = gfc_call_free (convert (pvoid_type_node, var)); gfc_add_expr_to_block (&se->post, tmp); } |

