public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/65397] [Coarrays][OOP] ICE in resolve_ordinary_assign
Date: Thu, 12 Mar 2015 11:11:00 -0000	[thread overview]
Message-ID: <bug-65397-4-aa9YXZRLHc@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-65397-4@http.gcc.gnu.org/bugzilla/>

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65397

--- Comment #2 from Tobias Burnus <burnus at gcc dot gnu.org> ---
The problem is in resolve_ordinary_assign (resolve.c):

9428      /* Assign the 'data' of a class object to a derived type.  */
9429      if (lhs->ts.type == BT_DERIVED
9430          && rhs->ts.type == BT_CLASS)
9431        gfc_add_data_component (rhs);

But the RHS is:

(gdb) p rhs->expr_type
$2 = EXPR_FUNCTION
(gdb) p rhs->symtree->name
$3 = 0x7ffff1f45f90 "_F.caf_get"

And adding "._data" fails in class.c as:

211       gfc_symbol *derived = e->symtree->n.sym->ts.u.derived;
(gdb) p e->symtree->n.sym->ts.u.derived
$4 = (gfc_symbol *) 0x0


  reply	other threads:[~2015-03-12 11:11 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-12 11:11 [Bug fortran/65397] New: " burnus at gcc dot gnu.org
2015-03-12 11:11 ` burnus at gcc dot gnu.org [this message]
2015-03-12 11:11 ` [Bug fortran/65397] " burnus at gcc dot gnu.org
2015-03-13 14:26 ` dominiq at lps dot ens.fr

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-65397-4-aa9YXZRLHc@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).