public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "burnus at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug fortran/41062] [4.4/4.5 Regression] ICE in gfc_trans_use_stmts, at fortran/trans-decl.c:3438
Date: Fri, 14 Aug 2009 07:48:00 -0000	[thread overview]
Message-ID: <20090814074838.19589.qmail@sourceware.org> (raw)
In-Reply-To: <bug-41062-15125@http.gcc.gnu.org/bugzilla/>



------- Comment #5 from burnus at gcc dot gnu dot org  2009-08-14 07:48 -------
Even more reduced example.

In "two" the internal procedure "one" should be called. Additionally, there
exists a generic procedure with the same name "one", which however is not
available in "two" as it is _not_ host-associated due to the local definition
of "one".

The assert which fails is:
              gcc_assert (st && st->n.sym->attr.use_assoc);

Thus one tries to do USE renames/"only" on the internal "one" rather than on
the host-associated "one". But actually, in "two" in gfc_trans_use_stmts one
should not touch "one" at all.


module m1
   interface one  ! GENERIC "one"
     module procedure one1
   end interface
contains
  subroutine one1()
  end subroutine one1
end module m1

module m2
use m1, only: one  ! USE generic "one"
contains
  subroutine two()
    call one()  ! Call internal "one"
  contains
    subroutine one() ! Internal "one"
    end subroutine one
  end subroutine two
end module m2


-- 


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


  parent reply	other threads:[~2009-08-14  7:48 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-13 20:45 [Bug fortran/41062] New: internal compiler error clerman at fuse dot net
2009-08-13 20:52 ` [Bug fortran/41062] " clerman at fuse dot net
2009-08-14  0:14 ` dominiq at lps dot ens dot fr
2009-08-14  0:30 ` [Bug fortran/41062] [4.4, 4.5 Regression] " jvdelisle at gcc dot gnu dot org
2009-08-14  6:03 ` [Bug fortran/41062] [4.4/4.5 Regression] ICE in gfc_trans_use_stmts, at fortran/trans-decl.c:3438 burnus at gcc dot gnu dot org
2009-08-14  7:48 ` burnus at gcc dot gnu dot org [this message]
2009-08-14  9:37 ` dominiq at lps dot ens dot fr
2009-08-17 14:13 ` pault at gcc dot gnu dot org
2009-08-17 20:17 ` pault at gcc dot gnu dot org
2009-08-20 14:59 ` [Bug fortran/41062] [4.4 " jsm28 at gcc dot gnu dot org
2009-08-25 18:55 ` pault at gcc dot gnu dot org
2009-08-25 18:56 ` pault at gcc dot gnu dot org
2009-08-29 12:14 ` clerman at fuse dot net

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=20090814074838.19589.qmail@sourceware.org \
    --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).