[Patch, fortran] PR47844 - Array stride ignored for pointer-valued function results
Paul Richard Thomas
paul.richard.thomas@gmail.com
Thu Oct 6 20:22:00 GMT 2011
Dear All,
As the testcase shows, pointer array functions can return strides that
are different to their initial values before the function call. This
fix makes use of the descriptor strides since they are returned
durectly.
Bootstrapped and regtested of x86_64/FC9 - OK for trunk?
Cheers
Paul
2011-10-06 Paul Thomas <pault@gcc.gnu.org>
PR fortran/47844
* trans-array.c (gfc_conv_array_index_offset): Use descriptor
stride for pointer function results.
2011-10-06 Paul Thomas <pault@gcc.gnu.org>
PR fortran/47844
* gfortran.dg/pointer_function_result_1.f90 : New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: submit.diff
Type: text/x-diff
Size: 2489 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/fortran/attachments/20111006/25b05655/attachment.bin>
More information about the Fortran
mailing list