re PR fortran/27470 (wrong memory allocator for derived types)
authorThomas Koenig <Thomas.Koenig@online.de>
Wed, 10 May 2006 18:26:51 +0000 (18:26 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Wed, 10 May 2006 18:26:51 +0000 (18:26 +0000)
commit3a7e3b6994153f59697d1ab2bc3e251daa63a4d7
tree33ede0b0a98f6e88dc6d67b29051b2c929405f93
parent0e2df6898a99a0a0f08ae8439e738049f8134293
re PR fortran/27470 (wrong memory allocator for derived types)

2005-05-10  Thomas Koenig  <Thomas.Koenig@online.de>

PR fortran/27470
* trans-array.c(gfc_array_allocate):  If ref->next exists
that is if there is a statement like ALLOCATE(foo%bar(2)),
F95 rules require that bar should be a pointer.

2005-05-10  Thomas Koenig  <Thomas.Koenig@online.de>

PR fortran/27470
* gfortran.dg/multiple_allocation_2.f90:  New test case.

From-SVN: r113680
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/multiple_allocation_2.f90 [new file with mode: 0644]