aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans.h
diff options
context:
space:
mode:
authorJanus Weil <janus@gcc.gnu.org>2010-07-29 20:14:16 +0200
committerJanus Weil <janus@gcc.gnu.org>2010-07-29 20:14:16 +0200
commitb2a5eb7501657692da7d9d294758753e122b3691 (patch)
treea67dba99dceef9faa3716776308033df861b23c1 /gcc/fortran/trans.h
parenta3378ceac91930adf5d5f2f95ca2874c14b6f6f1 (diff)
downloadgcc-b2a5eb7501657692da7d9d294758753e122b3691.zip
gcc-b2a5eb7501657692da7d9d294758753e122b3691.tar.gz
gcc-b2a5eb7501657692da7d9d294758753e122b3691.tar.bz2
re PR fortran/45004 ([OOP] Segfault with allocatable scalars and move_alloc)
2010-07-29 Janus Weil <janus@gcc.gnu.org> PR fortran/45004 * trans-stmt.h (gfc_trans_class_init_assign): New prototype. (gfc_trans_class_assign): Modified prototype. * trans.h (gfc_conv_intrinsic_move_alloc): New prototype. * trans-expr.c (gfc_trans_class_init_assign): Split off from ... (gfc_trans_class_assign): ... here. Modified actual arguments. * trans-intrinsic.c (gfc_conv_intrinsic_move_alloc): New function to handle the MOVE_ALLOC intrinsic with scalar and class arguments. * trans.c (trans_code): Call 'gfc_conv_intrinsic_move_alloc'. 2010-07-29 Janus Weil <janus@gcc.gnu.org> PR fortran/45004 * gfortran.dg/move_alloc_2.f90: New. From-SVN: r162688
Diffstat (limited to 'gcc/fortran/trans.h')
-rw-r--r--gcc/fortran/trans.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/fortran/trans.h b/gcc/fortran/trans.h
index 99f0dc0..3c80ce7 100644
--- a/gcc/fortran/trans.h
+++ b/gcc/fortran/trans.h
@@ -338,6 +338,8 @@ void gfc_conv_intrinsic_function (gfc_se *, gfc_expr *);
/* Does an intrinsic map directly to an external library call. */
int gfc_is_intrinsic_libcall (gfc_expr *);
+tree gfc_conv_intrinsic_move_alloc (gfc_code *);
+
/* Used to call ordinary functions/subroutines
and procedure pointer components. */
int gfc_conv_procedure_call (gfc_se *, gfc_symbol *, gfc_actual_arglist *,