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: unassig...@gcc.gnu.org ReportedBy: juno.kr...@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.