re PR fortran/27709 (Using size of array pointer component as dimension of function...
authorPaul Thomas <pault@gcc.gnu.org>
Fri, 26 May 2006 05:09:18 +0000 (05:09 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Fri, 26 May 2006 05:09:18 +0000 (05:09 +0000)
commit014057c510440341c2f1135c23fd4da2a42f765b
tree77c6438a1e7d93720520b1669b3cd5510e89eeea
parent3d26efa9eb9e6f032611bf559a6c31c925fc7295
re PR fortran/27709 (Using size of array pointer component as dimension of function result causes gfortran internal error.)

2006-05-26  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/27709
* resolve.c (find_array_spec): Add gfc_symbol, derived, and
use to track repeated component references.

PR fortran/27155
PR fortran/27449
* trans-intrinsic.c (gfc_conv_intrinsic_array_transfer): Use
se->string_length throughout and use memcpy to populate the
expression returned to the scalarizer.
(gfc_size_in_bytes): New function.

2006-05-26  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/27709
* gfortran.dg/spec_expr_4.f90: New test.

PR fortran/27155
* gfortran.dg/transfer_array_intrinsic_4.f90: New test.

From-SVN: r114127
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/fortran/trans-intrinsic.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/spec_expr_4.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/transfer_array_intrinsic_4.f90 [new file with mode: 0644]