https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64591
Bug ID: 64591 Summary: ICE on use association of renamed extended type Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: damian at sourceryinstitute dot org The code below generates an ICE related to subsequent use association of a renamed extended type. Damian $cat ice-use-renamed-extended-type.f90 module FTL_CaseInsensitiveString_mod implicit none type Object end type type, extends(Object) :: CaseInsensitiveString end type end module module FTL_CIString_mod use FTL_CaseInsensitiveString_mod, only: CIString => CaseInsensitiveString end module module FTL_CIStringXPair_mod use FTL_CIString_mod end module $gfortran -c ice-use-renamed-extended-type.f90 f951: internal compiler error: Segmentation fault 0xb81e3f crash_signal ../../gcc-trunk/gcc/toplev.c:359 0x686c58 load_derived_extensions ../../gcc-trunk/gcc/fortran/module.c:4578 0x686c58 read_module ../../gcc-trunk/gcc/fortran/module.c:5229 0x686c58 gfc_use_module ../../gcc-trunk/gcc/fortran/module.c:6875 0x6884e6 gfc_use_modules() ../../gcc-trunk/gcc/fortran/module.c:6999 0x690119 use_modules ../../gcc-trunk/gcc/fortran/parse.c:116 0x69265c decode_statement ../../gcc-trunk/gcc/fortran/parse.c:332 0x6939a2 next_free ../../gcc-trunk/gcc/fortran/parse.c:927 0x6939a2 next_statement ../../gcc-trunk/gcc/fortran/parse.c:1122 0x6942db parse_spec ../../gcc-trunk/gcc/fortran/parse.c:3065 0x697343 parse_module ../../gcc-trunk/gcc/fortran/parse.c:4757 0x697343 gfc_parse_file() ../../gcc-trunk/gcc/fortran/parse.c:5063 0x6d62b5 gfc_be_parse_file ../../gcc-trunk/gcc/fortran/f95-lang.c:222 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. $gfortran --version | head -1 GNU Fortran (GCC) 5.0.0 20141222 (experimental)