re PR fortran/31211 (wrong code generated for pointer returning function as actual...
authorPaul Thomas <pault@gcc.gnu.org>
Sun, 29 Jul 2007 14:44:03 +0000 (14:44 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sun, 29 Jul 2007 14:44:03 +0000 (14:44 +0000)
commit6a56381bf7e8825e08ec3a47bc14230528c82462
treeb1baf655fd48fd016a7f4e4a7691ae4277de5174
parentc317bc4076ec88beb910e6cdf0fcd067035361fb
re PR fortran/31211 (wrong code generated for pointer returning function as actual argument)

2007-07-29  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31211
* trans-expr.c (gfc_conv_expr_reference): Add block for case of
scalar pointer functions so that NULL result is correctly
handled.

PR fortran/32682
*trans-array.c (gfc_trans_array_constructor): On detecting a
multi-dimensional parameter array, set the loop limits.

2007-07-29  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31211
* gfortran.dg/actual_pointer_function_1.f90: New test.

PR fortran/32682
* gfortran.dg/scalarize_parameter_array_1.f90: New test.

From-SVN: r127044
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/actual_pointer_function_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/scalarize_parameter_array_1.f90 [new file with mode: 0644]