public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/55345] New: ICE with  abstract interface type with use-renamed local names
@ 2012-11-15 18:07 juno.krahn at nih dot gov
  2012-11-15 20:04 ` [Bug fortran/55345] " dominiq at lps dot ens.fr
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: juno.krahn at nih dot gov @ 2012-11-15 18:07 UTC (permalink / raw)
  To: gcc-bugs


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

             Bug #: 55345
           Summary: ICE with  abstract interface type with use-renamed
                    local names
    Classification: Unclassified
           Product: gcc
           Version: 4.6.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: juno.krahn@nih.gov


If an abstract interface type is renamed in the USE statement, and one of those
names includes the original name, an ICE can occur.

Example code (bug.f90):
----------------------------------
module mod1
  abstract interface
    subroutine func_t()
    end subroutine func_t
  end interface
end module mod1
module bug
  use mod1, func_t=>func_t, func1_t=>func_t
end module bug
----------------------------------

Result:
$ gfortran -c bug2.f90 
bug.f90:8:0: internal compiler error: in gfc_trans_use_stmts, at
fortran/trans-decl.c:3886
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://bugzilla.redhat.com/bugzilla> for instructions.


If the two USE statements are switched, no ICE occurs. It also succeeds if the
rename statements are within an ONLY list.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-01-10 15:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-15 18:07 [Bug fortran/55345] New: ICE with abstract interface type with use-renamed local names juno.krahn at nih dot gov
2012-11-15 20:04 ` [Bug fortran/55345] " dominiq at lps dot ens.fr
2012-11-16 15:56 ` juno.krahn at nih dot gov
2013-01-10 15:06 ` mikael at gcc dot gnu.org

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).