[Bug fortran/71203] ICE in add_init_expr_to_sym, at fortran/decl.c:1512 and :1564
gerhard.steinmetz.fortran@t-online.de
gcc-bugzilla@gcc.gnu.org
Thu May 19 20:25:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71203
--- Comment #2 from Gerhard Steinmetz <gerhard.steinmetz.fortran@t-online.de> ---
Forgotten to mention subcases :
$ cat z3a.f90
program p
character(3), parameter :: a(4) = ' '
character(*), parameter :: x(*) = a(1:2)(3:1)
end
$ gfortran-6 z3a.f90
*** Error in `/usr/lib64/gcc/x86_64-suse-linux/6/f951': malloc(): memory
corruption: 0x0000000002873390 ***
$ cat z3b.f90
program p
character(3), parameter :: a(4) = ' '
character(*), parameter :: x(*) = a(2:2)(3:0)
end
$ gfortran-6 z3b.f90
f951: out of memory allocating 18446744073709551612 bytes after a total of
634880 bytes
More information about the Gcc-bugs
mailing list