From c109362313623d83fe0a5194bceaf994cf0c6ce0 Mon Sep 17 00:00:00 2001 From: Thomas Koenig Date: Mon, 24 Sep 2018 17:12:34 +0000 Subject: re PR fortran/87397 (Clobbering intent(out) variables caused regression in OpenCoarrays testsuite) 2018-09-24 Thomas Koenig PR fortran/87397 * gfc_conv_procedure_call: Do not add clobber on INTENT(OUT) for variables in an associate statement. 2018-09-24 Thomas Koenig PR fortran/87401 * gfortran.dg/intent_out_12.f90: New test. From-SVN: r264539 --- gcc/fortran/trans-expr.c | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/fortran/trans-expr.c') diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c index b3808df..04210a4 100644 --- a/gcc/fortran/trans-expr.c +++ b/gcc/fortran/trans-expr.c @@ -5282,6 +5282,7 @@ gfc_conv_procedure_call (gfc_se * se, gfc_symbol * sym, && !e->symtree->n.sym->attr.dummy /* FIXME - PR 87395 and PR 41453 */ && e->symtree->n.sym->attr.save == SAVE_NONE + && !e->symtree->n.sym->attr.associate_var && e->ts.type != BT_CHARACTER && e->ts.type != BT_DERIVED && e->ts.type != BT_CLASS && !sym->attr.elemental; -- cgit v1.1