public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "bernd.edlinger at hotmail dot de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/64980] [5 Regression] ICE in trans-expr.c
Date: Mon, 16 Feb 2015 19:44:00 -0000 [thread overview]
Message-ID: <bug-64980-4-nYisaj8O5L@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-64980-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64980
--- Comment #20 from Bernd Edlinger <bernd.edlinger at hotmail dot de> ---
(In reply to Dominique d'Humieres from comment #12)
> In addition Bernd's patch fixes/hides the ICE for pr61960.
this pr is fixed by this hunk alone:
--- gcc/fortran/trans-expr.c (revision 220662)
+++ gcc/fortran/trans-expr.c (working copy)
@@ -3783,10 +3783,6 @@ gfc_apply_interface_mapping_to_expr (gfc_interface
expr->symtree = sym->new_sym;
else if (sym->expr)
gfc_replace_expr (expr, gfc_copy_expr (sym->expr));
- /* Replace base type for polymorphic arguments. */
- if (expr->ref && expr->ref->type == REF_COMPONENT
- && sym->expr && sym->expr->ts.type == BT_CLASS)
- expr->ref->u.c.sym = sym->expr->ts.u.derived;
}
/* ...and to subexpressions in expr->value. */
I verified the generated code, not only the ICE is gone, but
the code seems work.
So I'd declare pr61960 to be a duplicate of this PR.
next prev parent reply other threads:[~2015-02-16 19:44 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <bug-64980-4@http.gcc.gnu.org/bugzilla/>
2015-02-09 12:14 ` [Bug fortran/64980] [5.0 " janus at gcc dot gnu.org
2015-02-09 12:25 ` janus at gcc dot gnu.org
2015-02-09 13:05 ` dominiq at lps dot ens.fr
2015-02-09 13:45 ` mikael at gcc dot gnu.org
2015-02-09 14:35 ` [Bug fortran/64980] [5 " rguenth at gcc dot gnu.org
2015-02-09 15:57 ` mikael at gcc dot gnu.org
2015-02-12 21:20 ` bernd.edlinger at hotmail dot de
2015-02-13 11:22 ` dominiq at lps dot ens.fr
2015-02-13 19:01 ` bernd.edlinger at hotmail dot de
2015-02-13 20:03 ` mikael at gcc dot gnu.org
2015-02-13 21:10 ` bernd.edlinger at hotmail dot de
2015-02-14 12:28 ` mikael at gcc dot gnu.org
2015-02-14 15:08 ` dominiq at lps dot ens.fr
2015-02-14 17:45 ` mikael at gcc dot gnu.org
2015-02-14 17:49 ` mikael at gcc dot gnu.org
2015-02-14 21:30 ` bernd.edlinger at hotmail dot de
2015-02-15 12:30 ` bernd.edlinger at hotmail dot de
2015-02-16 7:32 ` dominiq at lps dot ens.fr
2015-02-16 7:54 ` bernd.edlinger at hotmail dot de
2015-02-16 13:55 ` dominiq at lps dot ens.fr
2015-02-16 19:44 ` bernd.edlinger at hotmail dot de [this message]
2015-02-22 19:45 ` edlinger at gcc dot gnu.org
2015-02-23 13:37 ` edlinger at gcc dot gnu.org
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-64980-4-nYisaj8O5L@http.gcc.gnu.org/bugzilla/ \
--to=gcc-bugzilla@gcc.gnu.org \
--cc=gcc-bugs@gcc.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).