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] PR55476 - fix bogus "Pointer might outlive the pointer target"


2012/11/27 Tobias Burnus <burnus@net-b.de>:
> The problem is that the symbol gets the host-associated flag as soon as it
> is host associated even in the host's namespace. Solution: Test additionally
> whether they have been declared in the same namespace.
>
> (I wonder whether there is a case where the host-association is attr is set
> and the namespace is different but the pointer won't outlive the target. I
> tried to create such a test case in the PR – and failed. I think it is not
> possible BLOCK or a module variable; and as there is only a single level of
> nesting, I think the attached patch is correct.)
>
> Bootstrapped and regtested on x86-64-gnu-linux.
> OK for the trunk?

Yes, looks good. Thanks for the patch!

Cheers,
Janus


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