re PR fortran/47519 (Deferred-length string wrong results with character intrinsic...
authorPaul Thomas <pault@gcc.gnu.org>
Mon, 31 Jan 2011 19:13:13 +0000 (19:13 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Mon, 31 Jan 2011 19:13:13 +0000 (19:13 +0000)
commitfabb6f8ea12176a06d181f26a6f3b824955b57e9
tree05fa8bedfa01cd41411713a530eb7ef6c57e85ae
parentb6c77bcb57974ccbb49f5651f9ba0e443b864d1d
re PR fortran/47519 (Deferred-length string wrong results with character intrinsic functions)

2011-01-31  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/47519
* trans-stmt.c (gfc_trans_allocate): Improve handling of
deferred character lengths with SOURCE.
* iresolve.c (gfc_resolve_repeat): Calculate character
length from source length and ncopies.
* dump-parse-tree.c (show_code_node): Show MOLD and SOURCE
expressions for ALLOCATE.

2011-01-31  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/47519
* gfortran.dg/allocate_deferred_char_scalar_2.f03: New test.

From-SVN: r169444
gcc/fortran/ChangeLog
gcc/fortran/dump-parse-tree.c
gcc/fortran/iresolve.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/allocate_deferred_char_scalar_2.f03 [new file with mode: 0644]