]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/trans-stmt.cc
re PR fortran/50981 ([OOP] Wrong-code for scalarizing ELEMENTAL call with absent...
authorTobias Burnus <burnus@net-b.de>
Tue, 16 Oct 2012 13:02:02 +0000 (15:02 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 16 Oct 2012 13:02:02 +0000 (15:02 +0200)
commit16e82b2535b1dce10bd48175b11350b3301e6064
tree0578db74885676fe6fbe9da0d761bbf5c9274c86
parent0fe03ac31859b5cdc6760e605dc17ffbccfe1860
re PR fortran/50981 ([OOP] Wrong-code for scalarizing ELEMENTAL call with absent OPTIONAL argument)

2012-10-16  Tobias Burnus  <burnus@net-b.de>

        PR fortran/50981
        PR fortran/54618
        * trans.h (gfc_conv_derived_to_class, gfc_conv_class_to_class):
        Update prototype.
        * trans-stmt.c (trans_associate_var,gfc_trans_allocate): Update
        calls to those functions.
        * trans-expr.c (gfc_conv_derived_to_class,
        * gfc_conv_class_to_class,
        gfc_conv_expr_present): Handle absent polymorphic arguments.
        (class_scalar_coarray_to_class): New function.
        (gfc_conv_procedure_call): Update calls.

2012-10-16  Tobias Burnus  <burnus@net-b.de>

        PR fortran/50981
        PR fortran/54618
        * gfortran.dg/class_optional_1.f90: New.
        * gfortran.dg/class_optional_2.f90: New.

From-SVN: r192495
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/fortran/trans-stmt.c
gcc/fortran/trans.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_optional_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/class_optional_2.f90 [new file with mode: 0644]