[Bug fortran/85521] [8 Regression] ICE in gfc_resolve_character_array_constructor, at fortran/array.c:2049

gscfq@t-online.de gcc-bugzilla@gcc.gnu.org
Tue Apr 24 17:51:00 GMT 2018


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85521

--- Comment #1 from G. Steinmetz <gscfq@t-online.de> ---

$ cat z2.f90
program p
   character(3) :: c = 'abc'
   character(3) :: z(1)
   z = [ c(:-2) ]
   print *, z
end


$ gfortran-8-20180422 -c z2.f90
z2.f90:4:0:

    z = [ c(:-2) ]

Warning: '__builtin_memmove' specified size 18446744073709551614 exceeds
maximum object size 9223372036854775807 [-Wstringop-overflow=]


More information about the Gcc-bugs mailing list