[Bug fortran/88552] New: ICE in gfc_typenode_for_spec, at fortran/trans-types.c:1120
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Wed Dec 19 16:11:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88552
Bug ID: 88552
Summary: ICE in gfc_typenode_for_spec, at
fortran/trans-types.c:1120
Product: gcc
Version: 9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
Assignee: unassigned at gcc dot gnu.org
Reporter: gscfq@t-online.de
Target Milestone: ---
Without a program statement :
$ cat z1.f90
integer(len((c)) :: n
end
$ gfortran-9-20181216 -c z1.f90
$ gfortran-9-20181216 -c z1.f90 -fimplicit-none
z1.f90:1:0:
1 | integer(len((c)) :: n
|
internal compiler error: in gfc_typenode_for_spec, at
fortran/trans-types.c:1120
0x78e59d gfc_typenode_for_spec(gfc_typespec*, int)
../../gcc/fortran/trans-types.c:1120
0x78c1f6 gfc_sym_type(gfc_symbol*)
../../gcc/fortran/trans-types.c:2243
0x71af9e gfc_get_symbol_decl(gfc_symbol*)
../../gcc/fortran/trans-decl.c:1696
0x71ea47 generate_local_decl
../../gcc/fortran/trans-decl.c:5600
0x6d3d12 do_traverse_symtree
../../gcc/fortran/symbol.c:4151
0x71ff9c generate_local_vars
../../gcc/fortran/trans-decl.c:5800
0x71ff9c gfc_generate_function_code(gfc_namespace*)
../../gcc/fortran/trans-decl.c:6444
0x69d7c6 translate_all_program_units
../../gcc/fortran/parse.c:6128
0x69d7c6 gfc_parse_file()
../../gcc/fortran/parse.c:6331
0x6e6fcf gfc_be_parse_file
../../gcc/fortran/f95-lang.c:204
---
Invalid syntax also silently accepted :
$ cat z3.f90
integer(m::n
end
$ gfortran-9-20181216 -c z3.f90
$ gfortran-9-20181216 -c z3.f90 -fimplicit-none
z3.f90:1:0:
1 | integer(m::n
|
internal compiler error: in gfc_typenode_for_spec, at
fortran/trans-types.c:1120
#...
More information about the Gcc-bugs
mailing list