https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90238
--- Comment #1 from Rich Townsend <townsend at astro dot wisc.edu> --- An even-simpler demo: -- program test_str_2 write(*,*) '' end program test_str_2 -- Compile with -O2 -Warray-bounds gives test_str_2.f90:3:0: write(*,*) '' Warning: array subscript 1 is above array bounds of 'character(kind=1)[1:0]' [-Warray-bounds] cheers, Rich