This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/87922] New: ICE in gfc_wide_strlen, at fortran/scanner.c:142
- From: "gscfq at t-online dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 07 Nov 2018 17:38:17 +0000
- Subject: [Bug fortran/87922] New: ICE in gfc_wide_strlen, at fortran/scanner.c:142
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87922
Bug ID: 87922
Summary: ICE in gfc_wide_strlen, at fortran/scanner.c:142
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 a non-scalar-default-char-constant-expr since at least gfortran-5 :
$ cat z1.f90
program p
read (1, asynchronous=['no'])
read (1, asynchronous=[character::])
end
$ cat z2.f90
program p
write (1, asynchronous=['no'])
write (1, asynchronous=[character::])
end
$ gfortran-9-20181104 -c z1.f90
f951: internal compiler error: Segmentation fault
0xb205df crash_signal
../../gcc/toplev.c:325
0x694450 gfc_wide_strlen(unsigned int const*)
../../gcc/fortran/scanner.c:142
0x638587 compare_to_allowed_values
../../gcc/fortran/io.c:2008
0x63b7ca check_io_constraints
../../gcc/fortran/io.c:3797
0x63b7ca match_io
../../gcc/fortran/io.c:4301
0x66a3c1 match_word
../../gcc/fortran/parse.c:65
0x66e1a0 decode_statement
../../gcc/fortran/parse.c:549
0x66e72a next_free
../../gcc/fortran/parse.c:1234
0x66e72a next_statement
../../gcc/fortran/parse.c:1466
0x670a94 parse_spec
../../gcc/fortran/parse.c:3674
0x672807 parse_progunit
../../gcc/fortran/parse.c:5671
0x673e89 gfc_parse_file()
../../gcc/fortran/parse.c:6211
0x6bc03f gfc_be_parse_file
../../gcc/fortran/f95-lang.c:204