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] PR55763 - reject MOLD with NULL() in init-data expressions


Dear Tobias,

Yes, following your previous patch that I OK'd this is clearly OK for trunk.

Thanks

Paul

On 4 January 2013 00:23, Tobias Burnus <burnus@net-b.de> wrote:
> NULL with MOLD should be rejected as (default) initialization expression.
> From F2008:
>
> R506 null-init is function-reference
> C512 (R506) The function-reference shall be a reference to the intrinsic
> function NULL with no arguments.
>
> "null-init" occurs twice, as "R505 initialization" in "R505 initialization"
> and in "R442 component-initialization" (default initialization).
>
>
> Before,
>   integer, pointer :: p => null(x)
> gave an type error (LHS: integer, RHS: unknown). While
>   class(*), pointer :: p => null(x)
> was accepted without error diagnostic.
>
>
> Build and regtested on x86-64-gnu-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]