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/45933] [4.6 regression] [OOP] ICE in gfc_add_component_ref, at fortran/class.c:77
Date: Thu, 07 Oct 2010 13:55:00 -0000	[thread overview]
Message-ID: <20101007135500.jg2kvKfgMHF1RZ9twEcr3Z4lbpayXel6yJhfEtKqasI@z> (raw)
In-Reply-To: <bug-45933-4@http.gcc.gnu.org/bugzilla/>

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45933

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 #2 from janus at gcc dot gnu.org 2010-10-07 13:55:02 UTC ---
Mine. Here's a patch:

Index: gcc/fortran/resolve.c
===================================================================
--- gcc/fortran/resolve.c    (revision 165052)
+++ gcc/fortran/resolve.c    (working copy)
@@ -5719,13 +5719,12 @@ resolve_typebound_function (gfc_expr* e)

   /* Deal with typebound operators for CLASS objects.  */
   expr = e->value.compcall.base_object;
-  if (expr && expr->symtree->n.sym->ts.type == BT_CLASS
-    && e->value.compcall.name)
+  if (expr && expr->ts.type == BT_CLASS && e->value.compcall.name)
     {
       /* Since the typebound operators are generic, we have to ensure
      that any delays in resolution are corrected and that the vtab
      is present.  */
-      ts = expr->symtree->n.sym->ts;
+      ts = expr->ts;
       declared = ts.u.derived;
       c = gfc_find_component (declared, "$vptr", true, true);
       if (c->ts.u.derived == NULL)


  parent reply	other threads:[~2010-10-07 13:55 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-07 13:11 [Bug fortran/45933] New: [4.6 regression] " mikael at gcc dot gnu.org
2010-10-07 13:17 ` [Bug fortran/45933] " mikael at gcc dot gnu.org
2010-10-07 13:18 ` [Bug fortran/45933] [4.6 regression] [OOP] " janus at gcc dot gnu.org
2010-10-07 13:55 ` janus at gcc dot gnu.org [this message]
2010-10-07 17:35 ` janus at gcc dot gnu.org
2010-10-07 17:41 ` 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=20101007135500.jg2kvKfgMHF1RZ9twEcr3Z4lbpayXel6yJhfEtKqasI@z \
    --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).