[patch, fortran, committed] Fix PR31972, ICE on Hollerith in TRANSFER.
Brooks Moses
brooks.moses@codesourcery.com
Mon May 28 21:11:00 GMT 2007
This is a trivial two-line fix. Once we know the size of a BT_HOLLERITH
expression, we already know how to export it to the memory buffer, since
all BT_HOLLERITH expressions have representation.string defined.
This patch also adds a check to make sure that we aren't transferring a
value _to_ a Hollerith, because that makes no sense.
Regression tested on powerpc-apple-darwin8.9.0, committed to trunk.
-----------------------------------------------------------------
2007-05-28 Brooks Moses <brooks.moses@codesourcery.com>
PR fortran/31972
* target-memory.c (gfc_target_expr_size): Add handling
for size of BT_HOLLERITH variables.
* check.c (gfc_check_transfer): Reject BT_HOLLERITH
variables in MOLD argument of TRANSFER.
-----------------------------------------------------------------
2007-05-28 Brooks Moses <brooks.moses@codesourcery.com>
PR fortran/31972
* transfer_hollerith_1.f90: New test.
-----------------------------------------------------------------
- Brooks
-------------- next part --------------
A non-text attachment was scrubbed...
Name: transfer_hollerith.diff
Type: text/x-patch
Size: 1054 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070528/f2edc609/attachment.bin>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: transfer_hollerith_1.f90
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20070528/f2edc609/attachment.f90>
More information about the Fortran
mailing list