re PR fortran/43388 ([F2008][OOP] ALLOCATE with MOLD=)
commit94bff63216c58605147ef22357d3bb48eee999ae
authorJanus Weil <janus@gcc.gnu.org>
Tue, 15 Jun 2010 18:33:58 +0000 (15 20:33 +0200)
committerJanus Weil <janus@gcc.gnu.org>
Tue, 15 Jun 2010 18:33:58 +0000 (15 20:33 +0200)
tree9b84864e2b7463fd00877080c1437f80e8b9b59e
parent8e9287111fb40ceacaeb85c30ce66ffb9728ec0f
re PR fortran/43388 ([F2008][OOP] ALLOCATE with MOLD=)

2010-06-15  Janus Weil  <janus@gcc.gnu.org>

PR fortran/43388
* gfortran.h (gfc_expr): Add new member 'mold'.
* match.c (gfc_match_allocate): Implement the MOLD tag.
* resolve.c (resolve_allocate_expr): Ditto.
* trans-stmt.c (gfc_trans_allocate): Ditto.

2010-06-15  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.

From-SVN: r160801
gcc/fortran/ChangeLog
gcc/fortran/gfortran.h
gcc/fortran/match.c
gcc/fortran/resolve.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_alloc_opt_10.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/allocate_alloc_opt_8.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/allocate_alloc_opt_9.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/class_allocate_2.f03