https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90238
--- Comment #5 from Rich Townsend <townsend at astro dot wisc.edu> --- (In reply to Steve Kargl from comment #4) > It's certainly confusing. gfortran.info includes > -Warray-bounds as a warning option, but there is no > description for the option. Grepping the gfortran > source code found the error was not coming from the > Fortran frontend. Grepping the GCC source finds > two instances of the warning string tree-vrp.c. I > know nothing of the middle-end code and how Fortran > strings are represented. Hopeefully, one the > middle-end developers can provide a clue to > suppressing the warning for Fortran strings. That might be nice. In the meantime, the workaround consists of passing blank strings ' ' instead of zero-length strings '', since the production code behaves the same either way. And for the write statement, write(*,*) does the same as write(*,*) '' cheers, Rich