[Patch, Fortran] PR55763 - reject MOLD with NULL() in init-data expressions
Paul Richard Thomas
paul.richard.thomas@gmail.com
Fri Jan 4 05:01:00 GMT 2013
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
More information about the Fortran
mailing list