[Bug fortran/92897] New: [9/10 Regression] ICE in gfc_set_array_spec, at fortran/array.c:864
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Tue Dec 10 20:34:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92897
Bug ID: 92897
Summary: [9/10 Regression] ICE in gfc_set_array_spec, at
fortran/array.c:864
Product: gcc
Version: 10.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Changed between 20190922 and 20190929 :
$ cat z1.f90
type(t) function f()
dimension :: t(1,2,1,2,1,2,1,2)
codimension :: t[1,2,1,2,1,2,1,*]
end
$ gfortran-10-20190922 -c z1.f90 -fcoarray=single
z1.f90:1:7:
1 | type(t) function f()
| 1
Error: Derived type 't' at (1) has not been declared
z1.f90:1:18:
1 | type(t) function f()
| 1
Error: The derived type 'f' at (1) is of type 't', which has not been defined
$ gfortran-10-20191208 -c z1.f90 -fcoarray=single
f951: internal compiler error: in gfc_set_array_spec, at fortran/array.c:864
0x5fb3ef gfc_set_array_spec(gfc_symbol*, gfc_array_spec*, locus*)
../../gcc/fortran/array.c:864
0x6141eb attr_decl1
../../gcc/fortran/decl.c:8532
0x6141eb attr_decl
../../gcc/fortran/decl.c:8584
0x67dc51 match_word
../../gcc/fortran/parse.c:65
0x6820b4 decode_statement
../../gcc/fortran/parse.c:464
0x682a1a next_free
../../gcc/fortran/parse.c:1279
0x682a1a next_statement
../../gcc/fortran/parse.c:1511
0x68414d parse_spec
../../gcc/fortran/parse.c:3938
0x686e3c parse_progunit
../../gcc/fortran/parse.c:5848
0x688861 gfc_parse_file()
../../gcc/fortran/parse.c:6402
0x6d306f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:210
More information about the Gcc-bugs
mailing list