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

* [Bug fortran/55345] ICE with  abstract interface type with use-renamed local names
  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 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: dominiq at lps dot ens.fr @ 2012-11-15 20:04 UTC (permalink / raw)
  To: gcc-bugs


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

Dominique d'Humieres <dominiq at lps dot ens.fr> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2012-11-15
                 CC|                            |burnus at gcc dot gnu.org
     Ever Confirmed|0                           |1

--- Comment #1 from Dominique d'Humieres <dominiq at lps dot ens.fr> 2012-11-15 20:04:19 UTC ---
Confirmed for 4.6.3. The ICE has been fixed for 4.7 between revisions 183001
(2012-01-09, ICE) and 183091 (2012-01-11, OK). Revision 183010 seems a good
candidate for the fix. The last comment for pr51578 says:

> FIXED on the trunk (GCC 4.7). Too big for backporting [esp. as no one has
> reported the bug/regression for years].

So please update your gfortran to 4.7.2.


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

* [Bug fortran/55345] ICE with  abstract interface type with use-renamed local names
  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
  2 siblings, 0 replies; 4+ messages in thread
From: juno.krahn at nih dot gov @ 2012-11-16 15:56 UTC (permalink / raw)
  To: gcc-bugs


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

--- Comment #2 from Juno Krahn <juno.krahn at nih dot gov> 2012-11-16 15:56:24 UTC ---
Abstract interfaces and rename aliasing are both seldom used, plus there is a
work-around, so I agree that there is no need for back porting.


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

* [Bug fortran/55345] ICE with  abstract interface type with use-renamed local names
  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
  2 siblings, 0 replies; 4+ messages in thread
From: mikael at gcc dot gnu.org @ 2013-01-10 15:06 UTC (permalink / raw)
  To: gcc-bugs


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

Mikael Morin <mikael at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |mikael at gcc dot gnu.org
         Resolution|                            |FIXED

--- Comment #3 from Mikael Morin <mikael at gcc dot gnu.org> 2013-01-10 15:06:07 UTC ---
Closing then.


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