summaryrefslogtreecommitdiffstats
path: root/gcc/fortran/trans-expr.c
diff options
context:
space:
mode:
authorpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-23 15:13:48 +0000
committerpault <pault@138bc75d-0d04-0410-961f-82ee72b054a4>2007-04-23 15:13:48 +0000
commit752e69df9faf8f26c0dccec65e68d7448283c0da (patch)
treecd69678252d64187f28421f356008d5cce4dce95 /gcc/fortran/trans-expr.c
parent9f3445353f18c85d5480d2bb0b027756db96ed27 (diff)
downloadppe42-gcc-752e69df9faf8f26c0dccec65e68d7448283c0da.tar.gz
ppe42-gcc-752e69df9faf8f26c0dccec65e68d7448283c0da.zip
2007-04-23 Paul Thomas <pault@gcc.gnu.org>
PR fortran/31630 * resolve.c (resolve_symbol): Allow resolution of formal namespaces nested within formal namespaces coming from modules. PR fortran/31620 * trans-expr.c (gfc_trans_assignment): Make the call to gfc_trans_zero_assign conditional on the lhs array ref being the only reference. 2007-04-23 Paul Thomas <pault@gcc.gnu.org> PR fortran/31630 * gfortran.dg/used_types_17.f90: New test. PR fortran/31620 * gfortran.dg/zero_array_components_1.f90: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@124069 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fortran/trans-expr.c')
-rw-r--r--gcc/fortran/trans-expr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c
index 498cc718790..182ec19e12b 100644
--- a/gcc/fortran/trans-expr.c
+++ b/gcc/fortran/trans-expr.c
@@ -3943,6 +3943,7 @@ gfc_trans_assignment (gfc_expr * expr1, gfc_expr * expr2, bool init_flag)
if (expr1->expr_type == EXPR_VARIABLE
&& expr1->rank > 0
&& expr1->ref
+ && expr1->ref->next == NULL
&& gfc_full_array_ref_p (expr1->ref)
&& is_zero_initializer_p (expr2))
{
OpenPOWER on IntegriCloud