re PR fortran/31215 (ICE on valid code with gfortran)
authorPaul Thomas <pault@gcc.gnu.org>
Sat, 24 Mar 2007 12:30:58 +0000 (12:30 +0000)
committerPaul Thomas <pault@gcc.gnu.org>
Sat, 24 Mar 2007 12:30:58 +0000 (12:30 +0000)
commit6a661315c2e9581727c969320d335da82dbd4829
tree1b826a7d7a962a2c539ee1473fd8adf32a1e60d5
parentd87008f258866a0748fc92e34158b7039d0b5a70
re PR fortran/31215 (ICE on valid code with gfortran)

2007-03-24  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31215
* trans-expr.c (gfc_apply_interface_mapping_to_expr): Return
int result that is non-zero if the expression is the function
result.  Only the characteristics of the result expression
can be used in a procedure interface, so simplify LEN in situ
using its character length.

PR fortran/31219
PR fortran/31200
* trans-expr.c (gfc_conv_function_call): Do not use
gfc_conv_expr_reference for actual pointer function with formal
target because a temporary is created that does not transfer
the reference correctly.  Do not indirect formal pointer
functions since it is the function reference that is needed.

2007-03-24  Paul Thomas  <pault@gcc.gnu.org>

PR fortran/31219
* gfortran.dg/pointer_function_actual_1.f90: New test.

PR fortran/31200
* gfortran.dg/pointer_function_actual_2.f90: New test.

PR fortran/31215
* gfortran.dg/result_in_spec_1.f90: New test.

From-SVN: r123183
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pointer_function_actual_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pointer_function_actual_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/result_in_spec_1.f90 [new file with mode: 0644]