OSDN Git Service

PR fortran/50981
authormikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jan 2012 14:20:17 +0000 (14:20 +0000)
committermikael <mikael@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 Jan 2012 14:20:17 +0000 (14:20 +0000)
commit4fd5163b8c4c4f51555f8e37e8db015a7b1005d0
treead722f059b14f5e1e54d719a3bdc2d8bb9ad7ede
parente2cac5e5e0dfb0a3a8ea9a215d65e1880522d152
PR fortran/50981
* trans-array.h (gfc_walk_elemental_function_args): New argument.
* trans-intrinsic.c (gfc_walk_intrinsic_function): Update call.
* trans-stmt.c (gfc_trans_call): Ditto.
* trans-array.c (gfc_walk_function_expr): Ditto.
(gfc_walk_elemental_function_args): Get the dummy argument list
if possible.  Check that the dummy and the actual argument are both
optional, and set can_be_null_ref accordingly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182875 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/fortran/ChangeLog
gcc/fortran/trans-array.c
gcc/fortran/trans-array.h
gcc/fortran/trans-intrinsic.c
gcc/fortran/trans-stmt.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/elemental_optional_args_2.f90 [new file with mode: 0644]