This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/71203] ICE in add_init_expr_to_sym, at fortran/decl.c:1512 and :1564


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]