[Bug fortran/82606] New: ICE in gfc_extract_int, at fortran/expr.c:641
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Wed Oct 18 16:34:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82606
Bug ID: 82606
Summary: ICE in gfc_extract_int, at fortran/expr.c:641
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
With reversed declaration order :
$ cat z1.f90
program p
type t(a, b)
integer, len :: b
integer, kind :: a
real(a) :: r(b)
end type
type(t(8, :)), allocatable :: x
real(x%a) :: y
end
$ gfortran-8-20171015 -c z1.f90
f951: internal compiler error: Segmentation fault
0xb5a08f crash_signal
../../gcc/toplev.c:326
0x68e96d gfc_extract_int(gfc_expr*, int*, int)
../../gcc/fortran/expr.c:641
0x67980d gfc_match_kind_spec(gfc_typespec*, bool)
../../gcc/fortran/decl.c:2754
0x67faa2 gfc_match_decl_type_spec(gfc_typespec*, int)
../../gcc/fortran/decl.c:4053
0x68115c gfc_match_data_decl()
../../gcc/fortran/decl.c:5605
0x6dbac9 match_word_omp_simd
../../gcc/fortran/parse.c:93
0x6df17e match_word
../../gcc/fortran/parse.c:376
0x6df17e decode_statement
../../gcc/fortran/parse.c:376
0x6e0fb4 next_free
../../gcc/fortran/parse.c:1225
0x6e0fb4 next_statement
../../gcc/fortran/parse.c:1457
0x6e289c parse_spec
../../gcc/fortran/parse.c:3831
0x6e4d93 parse_progunit
../../gcc/fortran/parse.c:5634
0x6e6354 gfc_parse_file()
../../gcc/fortran/parse.c:6174
0x72a6bf gfc_be_parse_file
../../gcc/fortran/f95-lang.c:204
More information about the Gcc-bugs
mailing list