This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran] PR55763 - reject MOLD with NULL() in init-data expressions
- 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: Fri, 4 Jan 2013 06:01:32 +0100
- Subject: Re: [Patch, Fortran] PR55763 - reject MOLD with NULL() in init-data expressions
- References: <50E612FA.5090703@net-b.de>
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