[PATCH] Fortran: fix ICE in check_host_association [PR108544]

Harald Anlauf anlauf@gmx.de
Wed Jan 25 21:59:22 GMT 2023


Dear all,

the attached patch fixes two issues: first it addresses a NULL pointer
dereference on invalid input, triggered by the provided testcase.

Second, while analyzing the context of the affected code, I looked into
the testcase for PR96102, and by varying it slightly, i.e. replacing
functions by subroutines I found that we accept invalid code that is
rejected by several other brands tested.  To fix this, I removed one
line of a condition that did not seem to make sense to me.

Regtested on x86_64-pc-linux-gnu.  OK for mainline?

Thanks,
Harald

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr108544.diff
Type: text/x-patch
Size: 2932 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20230125/fd9dc947/attachment.bin>


More information about the Gcc-patches mailing list