public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "janus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55983] [4.7/4.8 Regression] ICE in find_typebound_proc_uop, at fortran/class.c:2711 Date: Tue, 15 Jan 2013 21:10:00 -0000 [thread overview] Message-ID: <bug-55983-4-YYSOVSWH9i@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-55983-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55983 janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED AssignedTo|unassigned at gcc dot |janus at gcc dot gnu.org |gnu.org | --- Comment #5 from janus at gcc dot gnu.org 2013-01-15 21:10:26 UTC --- The following patch fixes the ICE in comment 0: Index: gcc/fortran/class.c =================================================================== --- gcc/fortran/class.c (revision 195125) +++ gcc/fortran/class.c (working copy) @@ -2707,15 +2707,17 @@ find_typebound_proc_uop (gfc_symbol* derived, gfc_ gfc_symtree* res; gfc_symtree* root; - /* Set correct symbol-root. */ - gcc_assert (derived->f2k_derived); - root = (uop ? derived->f2k_derived->tb_uop_root - : derived->f2k_derived->tb_sym_root); - /* Set default to failure. */ if (t) *t = FAILURE; + if (derived->f2k_derived) + /* Set correct symbol-root. */ + root = (uop ? derived->f2k_derived->tb_uop_root + : derived->f2k_derived->tb_sym_root); + else + return NULL; + /* Try to find it in the current type's namespace. */ res = gfc_find_symtree (root, name); if (res && res->n.tb && !res->n.tb->error)
next prev parent reply other threads:[~2013-01-15 21:10 UTC|newest] Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-01-14 23:10 [Bug fortran/55983] New: " slayoo at staszic dot waw.pl 2013-01-15 8:29 ` [Bug fortran/55983] [4.7/4.8 Regression] " janus at gcc dot gnu.org 2013-01-15 8:31 ` janus at gcc dot gnu.org 2013-01-15 9:03 ` slayoo at staszic dot waw.pl 2013-01-15 9:10 ` janus at gcc dot gnu.org 2013-01-15 10:09 ` janus at gcc dot gnu.org 2013-01-15 21:10 ` janus at gcc dot gnu.org [this message] 2013-01-15 22:17 ` janus at gcc dot gnu.org 2013-01-16 13:31 ` janus at gcc dot gnu.org 2013-01-16 19:52 ` janus at gcc dot gnu.org 2013-01-17 10:56 ` janus at gcc dot gnu.org 2013-01-17 10:58 ` janus 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-55983-4-YYSOVSWH9i@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: linkBe 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).