This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [Patch, Fortran] PR52864 - Fix pointer-intent regresssion
- From: Janus Weil <janus at gcc dot gnu dot org>
- To: Tobias Burnus <burnus at net-b dot de>
- Cc: gcc patches <gcc-patches at gcc dot gnu dot org>, gfortran <fortran at gcc dot gnu dot org>
- Date: Sun, 15 Apr 2012 17:07:29 +0200
- Subject: Re: [Patch, Fortran] PR52864 - Fix pointer-intent regresssion
- References: <4F86990C.6040804@net-b.de>
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