[Bug fortran/70070] ICE on initializing character data beyond min/max bound
gerhard.steinmetz.fortran@t-online.de
gcc-bugzilla@gcc.gnu.org
Mon Nov 28 19:42:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70070
Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|6.0 |7.0
--- Comment #6 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
gfortran-7-20161127 (configured with --enable-checking=yes) also ICEs
for all posted and unposted tests, with different messages.
Special backtrace from comment 4 is not reproducible with 7.
Apart from that, there is another variant, using LANG=de_DE.UTF-8 :
$ cat z2.f90
program p
integer :: i
character(10) :: c
data (c(i:i), i=1,100) /100*'c'/
end
$ gfortran-7-20161127 z2.f90
f951: internal compiler error: Speicherzugriffsfehler
0xc4532f crash_signal
../../gcc/toplev.c:333
0x67803e formalize_init_expr
../../gcc/fortran/data.c:642
0x716fbb do_traverse_symtree
../../gcc/fortran/symbol.c:3994
0x7001c3 resolve_types
../../gcc/fortran/resolve.c:15973
0x6fbb0c gfc_resolve(gfc_namespace*)
../../gcc/fortran/resolve.c:16058
0x6e609a resolve_all_program_units
../../gcc/fortran/parse.c:5977
0x6e609a gfc_parse_file()
../../gcc/fortran/parse.c:6224
0x729ee2 gfc_be_parse_file
../../gcc/fortran/f95-lang.c:202
With LANG=C :
$ gfortran-7-20161127 z2.f90
*** Error in
`/home/gst/gcc/gcc-7-20161127-oyd/lib/gcc/x86_64-pc-linux-gnu/7.0.0/f951':
corrupted double-linked list: 0x0000000003e0f690 ***
# hangs
More information about the Gcc-bugs
mailing list