https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71203
--- Comment #2 from Gerhard Steinmetz <gerhard.steinmetz.fort...@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