https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65089
--- Comment #13 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > This patch resolves the -fsanitize=address issue and also does some memory > cleanup on formatted I/O errors. I have regression tested and all is OK, but > have not tried all the variations with -m32 or -fsanitize=address on the > testsuite. The patch looks good (even for my limited understanding of the code). I have run the fortran test suite with check-gfortran RUNTESTFLAGS="--target_board=unix'{-m32,-m64,-m32/-fsanitize=address,-m64/-fsanitize=address}'" The io_real_boz* problem is fixed without new regression. I have also "sanitized" the NIST test suite which runs without error for both -m32 and -m64. Thanks for working on this issue.