[PATCH] PR fortran/101762 - ICE on non-constant pointer initialization targets
Harald Anlauf
anlauf@gmx.de
Mon Jan 3 19:45:38 GMT 2022
Dear all,
the initial-data-target for a pointer initialization can be either
NULL() or a non-constant target. In the latter case subscripts of
the target specification (or substring starting and ending points)
must be constant expressions. The patch adds corresponding checks.
I have verified that current Intel and Cray compilers generate similar
errors for the testcase.
Regtested on x86_64-pc-linux-gnu. OK for mainline?
Thanks,
Harald
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fortran-reject-invalid-non-constant-pointer-initiali.patch
Type: text/x-patch
Size: 3006 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20220103/84a381ed/attachment-0001.bin>
More information about the Gcc-patches
mailing list