https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83866
Bug ID: 83866 Summary: [8 Regression] ICE in gfc_release_symbol, at fortran/symbol.c:3087 Product: gcc Version: 8.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: fortran Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- With a missing comma : $ cat z1.f90 program p type t class(t), pointer :: a end type type extends(t) :: t2 end type end $ gfortran-8-20180114 -c z1.f90 f951: internal compiler error: in gfc_release_symbol, at fortran/symbol.c:3087 0x736ceb gfc_release_symbol(gfc_symbol*) ../../gcc/fortran/symbol.c:3087 0x736e6e gfc_restore_last_undo_checkpoint() ../../gcc/fortran/symbol.c:3696 0x6f3db7 reject_statement ../../gcc/fortran/parse.c:2547 0x6f3ecc match_word_omp_simd ../../gcc/fortran/parse.c:98 0x6f7efb match_word ../../gcc/fortran/parse.c:565 0x6f7efb decode_statement ../../gcc/fortran/parse.c:565 0x6f93d4 next_free ../../gcc/fortran/parse.c:1226 0x6f93d4 next_statement ../../gcc/fortran/parse.c:1458 0x6facbc parse_spec ../../gcc/fortran/parse.c:3836 0x6fd173 parse_progunit ../../gcc/fortran/parse.c:5649 0x6fe754 gfc_parse_file() ../../gcc/fortran/parse.c:6189 0x744e5f gfc_be_parse_file ../../gcc/fortran/f95-lang.c:204 Using version 7 or older : $ gfortran-7 -c z1.f90 z1.f90:5:3: type extends(t) :: t2 1 Error: Unclassifiable statement at (1) z1.f90:6:6: end type 1 Error: Expecting END PROGRAM statement at (1)