[Bug fortran/124543] INQUIRE: Sometimes returns incorrect values
jvdelisle at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 22 01:15:06 GMT 2026
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=124543
--- Comment #5 from Jerry DeLisle <jvdelisle at gcc dot gnu.org> ---
I confirmed the segfault mentioned. The gfc_unit *u is not set. I will fix that
first
inquire_via_unit (iqp=iqp@entry=0x7fffffffc8e0, u=u@entry=0x0) at
../../../libgfortran/io/inquire.c:348
348 if (!ASYNC_IO || u->au == NULL)
We need to guard that with an error message I suspect.
More information about the Gcc-bugs
mailing list