From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1257 invoked by alias); 15 Nov 2012 18:07:30 -0000 Received: (qmail 1138 invoked by uid 48); 15 Nov 2012 18:07:17 -0000 From: "juno.krahn at nih dot gov" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/55345] New: ICE with abstract interface type with use-renamed local names Date: Thu, 15 Nov 2012 18:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: juno.krahn at nih dot gov X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg01439.txt.bz2 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 for instructions. If the two USE statements are switched, no ICE occurs. It also succeeds if the rename statements are within an ONLY list.