[PATCH] Fortran: initialize non-saved pointers with -fcheck=pointer [PR48958]

Harald Anlauf anlauf@gmx.de
Thu Feb 20 20:18:01 GMT 2025


Dear all,

the attached simple patch addresses a small, left-over issue in the
above PR and was already OK'ed in the PR by Thomas.  With it we
initialize the data component of a non-saved pointer variable when
-fcheck=pointer is specified, so that subsequent pointer checks
(e.g. for the SIZE intrinsic) trigger consistently and not randomly.

I plan to commit within 24h unless there are comments.

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

Thanks,
Harald

-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr48958-part2.diff
Type: text/x-patch
Size: 2553 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/fortran/attachments/20250220/fbf2f45c/attachment-0002.bin>


More information about the Fortran mailing list