* [patch, fortran] Bug 71764 - [4.9/5/6/7 Regression] ICE in gfc_trans_structure_assign
@ 2016-07-08 4:09 Jerry DeLisle
0 siblings, 0 replies; only message in thread
From: Jerry DeLisle @ 2016-07-08 4:09 UTC (permalink / raw)
To: fortran; +Cc: gcc-patches
This trivial patch removes the problem. As far as I can tell, looking at
-fdump-tree-original, the results are correct.
Regression tested on x86-64. I will add a test case from the PR.
I plan to commit to trunk and then backport after about a week if no
problems show up.
Regards,
Jerry
2016-07-07 Jerry DeLisle <jvdelisle@gcc.gnu.org>
PR fortran/71764
* trans-expr.c (gfc_trans_structure_assign): Remove assert.
diff --git a/gcc/fortran/trans-expr.c b/gcc/fortran/trans-expr.c
index b5731aa8..4321850b 100644
--- a/gcc/fortran/trans-expr.c
+++ b/gcc/fortran/trans-expr.c
@@ -7358,7 +7358,6 @@ gfc_trans_structure_assign (tree dest, gfc_expr *
expr, bool init)
{
gfc_se se, lse;
- gcc_assert (cm->backend_decl == NULL);
gfc_init_se (&se, NULL);
gfc_init_se (&lse, NULL);
gfc_conv_expr (&se, gfc_constructor_first
(expr->value.constructor)->expr);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2016-07-08 4:09 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-08 4:09 [patch, fortran] Bug 71764 - [4.9/5/6/7 Regression] ICE in gfc_trans_structure_assign Jerry DeLisle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).