This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch, Fortran, OOP] PR 43388: [F2008] ALLOCATE with MOLD=
On Sun, Jun 13, 2010 at 05:40:35PM +0200, Janus Weil wrote:
> > (Will do a complete testsuite run and add a ChangeLog soonish ...)
>
> With one small addition (changing an error message in
> class_allocate_2.f03) the testsuite completes successfully. Updated
> patch and ChangeLog attached.
>
> Any comments? Ok for trunk?
>
> Cheers,
> Janus
>
>
> 2010-06-13 Janus Weil <janus@gcc.gnu.org>
>
> PR fortran/43388
> * gfortran.h (gfc_code): Add new member 'expr4'.
> * match.c (gfc_match_allocate): Implement the MOLD tag.
> * resolve.c (resolve_allocate_expr): Ditto.
> * trans-stmt.c (gfc_trans_allocate): Ditto.
>
>
> 2010-06-13 Janus Weil <janus@gcc.gnu.org>
>
> PR fortran/43388
> * gfortran.dg/allocate_alloc_opt_8.f90: New.
> * gfortran.dg/allocate_alloc_opt_9.f90: New.
> * gfortran.dg/allocate_alloc_opt_10.f90: New.
> * gfortran.dg/class_allocate_2.f03: Modified an error message.
OK.
A quick read through F2008 suggests that MOLD and SOURCE can
appear in the same allocate statement. Which source-expr
takes precedence?
--
Steve