This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran, F03] PR 58916: Allocation of scalar with array source not rejected
- From: Paul Richard Thomas <paul dot richard dot thomas at gmail dot com>
- To: Janus Weil <janus at gcc dot gnu dot org>
- Cc: gfortran <fortran at gcc dot gnu dot org>, gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 11 Dec 2013 14:35:48 +0100
- Subject: Re: [Patch, Fortran, F03] PR 58916: Allocation of scalar with array source not rejected
- Authentication-results: sourceware.org; auth=none
- References: <CAKwh3qhFOh=8VjNdFerzDo9OQL4-0T079PgRZ-eqhuDR8-BDZA at mail dot gmail dot com>
Dear Janus,
It looks good to me - OK for trunk.
Thanks for the patch.
Paul
On 11 December 2013 14:02, Janus Weil <janus@gcc.gnu.org> wrote:
> Hi all,
>
> attached is a small patch which fixes accepts-invalid and
> ICE-on-invalid problems on allocation with source. Regtested on
> x86_64-unknown-linux-gnu. Ok for trunk?
>
> Cheers,
> Janus
>
>
> 2013-12-11 Janus Weil <janus@gcc.gnu.org>
>
> PR fortran/58916
> * resolve.c (conformable_arrays): Treat scalar 'e2'.
> (resolve_allocate_expr): Check rank also for unlimited-polymorphic
> variables.
>
>
> 2013-12-11 Janus Weil <janus@gcc.gnu.org>
>
> PR fortran/58916
> * gfortran.dg/allocate_with_source_4.f90: New.
--
The knack of flying is learning how to throw yourself at the ground and miss.
--Hitchhikers Guide to the Galaxy