[PATCH] Fortran: error handling of global entity appearing in COMMON block [PR103259]
Harald Anlauf
anlauf@gmx.de
Tue Feb 7 19:36:33 GMT 2023
Dear all,
the attached trivial patch by Steve fixes a NULL pointer dereference
that occurs when an error shall be emitted for a global entity that
conflicts with a symbol appearing in a COMMON block, but the symbol's
location is not set. This may happen e.g. in the testcase in the PR,
where the COMMON variables are imported from a module.
Regtested on x86_64-pc-linux-gnu with no failures.
I intend to commit as obvious within 24h unless there are comments.
Thanks,
Harald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr103259.diff
Type: text/x-patch
Size: 2213 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20230207/2c062129/attachment.bin>
More information about the Gcc-patches
mailing list