[Bug fortran/88228] New: ICE in check_null, at fortran/expr.c:2691
gscfq@t-online.de
gcc-bugzilla@gcc.gnu.org
Tue Nov 27 17:56:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88228
Bug ID: 88228
Summary: ICE in check_null, at fortran/expr.c:2691
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: ---
With option -fdec since gfortran-7 :
$ cat z1.f90
program p
integer :: n = .not. 1
end
$ cat z2.f90
program p
integer :: j = .true. .or. 1
end
$ gfortran-9-20181125 -c z1.f90
z1.f90:2:23:
2 | integer :: n = .not. 1
| 1
Error: Operand of .not. operator at (1) is INTEGER(4)
$ gfortran-9-20181125 -c z1.f90 -fdec
f951: internal compiler error: Segmentation fault
0xb2bcff crash_signal
../../gcc/toplev.c:326
0x61e8f6 check_null
../../gcc/fortran/expr.c:2691
0x61e8f6 gfc_check_init_expr(gfc_expr*)
../../gcc/fortran/expr.c:2792
0x61ecb7 gfc_reduce_init_expr(gfc_expr*)
../../gcc/fortran/expr.c:2955
0x621d90 gfc_match_init_expr(gfc_expr**)
../../gcc/fortran/expr.c:3001
0x60f189 variable_decl
../../gcc/fortran/decl.c:2710
0x60f189 gfc_match_data_decl()
../../gcc/fortran/decl.c:5921
0x66dc23 match_word
../../gcc/fortran/parse.c:65
0x66dc23 decode_statement
../../gcc/fortran/parse.c:376
0x66f6aa next_free
../../gcc/fortran/parse.c:1234
0x66f6aa next_statement
../../gcc/fortran/parse.c:1466
0x671a14 parse_spec
../../gcc/fortran/parse.c:3674
0x673787 parse_progunit
../../gcc/fortran/parse.c:5671
0x674e09 gfc_parse_file()
../../gcc/fortran/parse.c:6211
0x6bdaff gfc_be_parse_file
../../gcc/fortran/f95-lang.c:204
More information about the Gcc-bugs
mailing list