This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch,Fortran] PR46122 Make PROTECT check less strict
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- 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: Sat, 23 Oct 2010 14:56:21 +0200
- Subject: Re: [Patch,Fortran] PR46122 Make PROTECT check less strict
- References: <4CC2D988.7010303@net-b.de>
Dear Tobias,
I saw the thread on clf. Thanks for fixing it so quickly.
OK for trunk.
Paul
On Sat, Oct 23, 2010 at 2:48 PM, Tobias Burnus <burnus@net-b.de> wrote:
> Currently, GCC rejects
>
> ?protected_pointer%pointer%var = 5
>
> as the "protected_pointer" is protected. However, that only protects the
> pointer association status - but the example does not modify it - only the
> target of the pointer is modified, which is valid.
>
> The solution is to do the same as with INTENT: Don't continue checking as
> soon as there is component-ref with a pointer component involved (which is
> not the last component-ref).
>
> Build and currently regtesting on x86-64-linux.
> OK for the trunk?
>
> Tobias
>
--
The knack of flying is learning how to throw yourself at the ground and miss.
? ? ?? --Hitchhikers Guide to the Galaxy