https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82866

--- Comment #2 from G. Steinmetz <gs...@t-online.de> ---

Slightly different :


$ cat z7.f90
module m
   type t(a, :, *)
   end type
end


$ cat z7s.f90
subroutine s
   type t(a, :, *)
   end type
end


$ cat z8.f90
module m
   type t(*, a, :)
   end type
end


$ cat z8s.f90
subroutine s
   type t(*, a, :)
   end type
end


$ gfortran-8-20171105 -c z7.f90
f951: internal compiler error: Segmentation fault
0xb60fdf crash_signal
        ../../gcc/toplev.c:324
0x66541b delete_root
        ../../gcc/fortran/bbt.c:150
0x6655ee gfc_delete_bbt(void*, void*, int (*)(void*, void*))
        ../../gcc/fortran/bbt.c:197
0x71dc88 gfc_delete_symtree(gfc_symtree**, char const*)
        ../../gcc/fortran/symbol.c:2925
0x71f456 gfc_restore_last_undo_checkpoint()
        ../../gcc/fortran/symbol.c:3694
0x6ddfe7 reject_statement
        ../../gcc/fortran/parse.c:2546
0x6de0fc match_word_omp_simd
        ../../gcc/fortran/parse.c:98
0x6e20eb match_word
        ../../gcc/fortran/parse.c:565
0x6e20eb decode_statement
        ../../gcc/fortran/parse.c:565
0x6e35c4 next_free
        ../../gcc/fortran/parse.c:1225
0x6e35c4 next_statement
        ../../gcc/fortran/parse.c:1457
0x6e53ec parse_spec
        ../../gcc/fortran/parse.c:3651
0x6e84d8 parse_module
        ../../gcc/fortran/parse.c:5900
0x6e8ec9 gfc_parse_file()
        ../../gcc/fortran/parse.c:6213
0x72d3bf gfc_be_parse_file
        ../../gcc/fortran/f95-lang.c:204

Reply via email to