[prev in list] [next in list] [prev in thread] [next in thread]
List: gcc-fortran
Subject: Re: [Patch, Fortran] PR52864 - Fix pointer-intent regresssion
From: Janus Weil <janus () gcc ! gnu ! org>
Date: 2012-04-15 15:07:29
Message-ID: CAKwh3qg76z2xCcAHUz1UuzXRa-8ppmobUSZCEjnQ2ZiqPqYkaw () mail ! gmail ! com
[Download RAW message or body]
Hi Tobias,
> That's a GCC 4.6-4.8 regression. Pointer intents apply to the association
> status and not to the value. Thus, assigning to an intent(in) pointer is
> fine. The problem was that the LHS is no pointer due to the array access
> ("dt%ptr(1) =") thus, the check got triggered.
>
> Build and regtested on x86-64-linux.
> OK for the trunk and the 4.6/4.7 branch?
I'd say this patch is ok for trunk immediately, and for the branches
after a short waiting-period. Maybe you could extend the comment above
the code you're modifying?
Thanks,
Janus
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic