https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80365
--- Comment #3 from Dominique d'Humieres <dominiq at lps dot ens.fr> --- > How do I actually obtain this error? I see it with a build configured with Configured with: ../work/configure --prefix=/opt/gcc/gcc8g --enable-languages=c,c++,fortran --with-gmp=/opt/mp-new --with-system-zlib --with-isl=/opt/mp-new --disable-bootstrap --disable-multilib --disable-libstdcxx CFLAGS='-L/opt/gcc/gcc7a/lib -lasan -lubsan -fsanitize=address,undefined,leak -Og -g -fno-omit-frame-pointer' CXXFLAGS='-fsanitize=address,undefined,leak -Og -g -fno-omit-frame-pointer' LDFLAGS='-L/opt/gcc/gcc7a/lib -lasan -lubsan -ldl -lpthread' ../../../work/libgfortran/io/unix.c:597:7: runtime error: null pointer passed as argument 2, which is declared to never be null at run time.