re PR fortran/50981 ([OOP] Wrong-code for scalarizing ELEMENTAL call with absent...
authorMikael Morin <mikael@gcc.gnu.org>
Sun, 4 Mar 2012 21:50:08 +0000 (21:50 +0000)
committerMikael Morin <mikael@gcc.gnu.org>
Sun, 4 Mar 2012 21:50:08 +0000 (21:50 +0000)
commit5bf5fa563aea3f8763d2c49d53bf8a0d8c1bc7c2
tree7065977b6c71f54588660cd5fd71f801483a0a0b
parentf0050a4b2a8ac6d61eeffcac8ad484be9ed462a3
re PR fortran/50981 ([OOP] Wrong-code for scalarizing ELEMENTAL call with absent OPTIONAL argument)

fortran/
PR fortran/50981
* gfortran.h (gfc_is_class_container_ref): New prototype.
* class.c (gfc_is_class_container_ref): New function.
* trans-expr.c (gfc_conv_procedure_call): Add a "_data" component
reference to polymorphic actual arguments.

testsuite/
PR fortran/50981
* gfortran.dg/elemental_optional_args_5.f03: Add subcomponent actual
argument checks.

From-SVN: r184904
gcc/fortran/ChangeLog
gcc/fortran/class.c
gcc/fortran/gfortran.h
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/elemental_optional_args_5.f03