This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Patch,Fortran] PR46122 Make PROTECT check less strict


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]