http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50981

--- Comment #6 from Mikael Morin <mikael at gcc dot gnu.org> 2012-01-04 
14:20:24 UTC ---
Author: mikael
Date: Wed Jan  4 14:20:17 2012
New Revision: 182875

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=182875
Log:
    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.


Added:
    trunk/gcc/testsuite/gfortran.dg/elemental_optional_args_2.f90
Modified:
    trunk/gcc/fortran/ChangeLog
    trunk/gcc/fortran/trans-array.c
    trunk/gcc/fortran/trans-array.h
    trunk/gcc/fortran/trans-intrinsic.c
    trunk/gcc/fortran/trans-stmt.c
    trunk/gcc/testsuite/ChangeLog

Reply via email to