aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans.h
diff options
context:
space:
mode:
authorJanus Weil <janus@gcc.gnu.org>2010-10-26 19:38:42 +0200
committerJanus Weil <janus@gcc.gnu.org>2010-10-26 19:38:42 +0200
commit2c80712872be90ceda8afb904e3b1f8d6501d070 (patch)
tree94b46a9fc603f6f0d3a211f16ef784d84c96bfaf /gcc/fortran/trans.h
parent530f3a1bf62964c0c52d6fcf4ca0d321ce9d5156 (diff)
downloadgcc-2c80712872be90ceda8afb904e3b1f8d6501d070.zip
gcc-2c80712872be90ceda8afb904e3b1f8d6501d070.tar.gz
gcc-2c80712872be90ceda8afb904e3b1f8d6501d070.tar.bz2
re PR fortran/42647 ([F03] Missed initialization/dealloc of allocatable scalar DT with allocatable component)
2010-10-26 Janus Weil <janus@gcc.gnu.org> PR fortran/42647 * trans.h (gfc_deallocate_scalar_with_status): New prototype. * trans.c (gfc_deallocate_scalar_with_status): New function for deallocation of allocatable scalars. * trans-array.c (structure_alloc_comps): Call it here ... * trans-decl.c (gfc_trans_deferred_vars): ... here ... * trans-stmt.c (gfc_trans_deallocate): ... and here. 2010-10-26 Janus Weil <janus@gcc.gnu.org> PR fortran/42647 * gfortran.dg/allocatable_scalar_9.f90: Extended. * gfortran.dg/allocatable_scalar_10.f90: New. * gfortran.dg/class_19.f03: Extended. From-SVN: r165973
Diffstat (limited to 'gcc/fortran/trans.h')
-rw-r--r--gcc/fortran/trans.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/trans.h b/gcc/fortran/trans.h
index efd5eb9..6c944df 100644
--- a/gcc/fortran/trans.h
+++ b/gcc/fortran/trans.h
@@ -532,6 +532,7 @@ tree gfc_allocate_with_status (stmtblock_t *, tree, tree);
/* Generate code to deallocate an array. */
tree gfc_deallocate_with_status (tree, tree, bool, gfc_expr*);
+tree gfc_deallocate_scalar_with_status (tree, tree, bool, gfc_expr*, gfc_typespec);
/* Generate code to call realloc(). */
tree gfc_call_realloc (stmtblock_t *, tree, tree);