[Patch, Fortran] PR 45586: Mark type pointer components as nonrestricted
Mikael Morin
mikael.morin@sfr.fr
Thu Jul 28 02:55:00 GMT 2011
On Wednesday 27 July 2011 22:39:20 Tobias Burnus wrote:
> See discussion at http://gcc.gnu.org/ml/fortran/2011-07/msg00281.html
> and see PR 45586.
>
> This patch fixes the test case of the PR by properly using the
> nonrestricted type for pointer components. Before, the test case failed
> (ICE) in some tree checking. While the ICE only affects the trunk (more
> precisely: --enable-checking={yes,tree}), the issue itself also affects
> the branches.
>
> I am not completely sure that the patch covers all restrict/nonrestrict
> issues, but it fixes the PR and I couldn't create a variant which still
> gave an ICE.
I think the patch is good. Anyway, it shouldn't make things worse, which makes
it good enough at least.
>
> Build and regtested on x86-64-linux.
> OK for the trunk? What about backporting to 4.6 and to 4.5?
OK for trunk and 4.6.
4.5 doesn't have the gfc_nonrestricted_type function, so it's not worth the
bother IMO (unless you feel like backporting Michael's patch ;-) ).
Thanks
Mikael
More information about the Gcc-patches
mailing list