re PR fortran/57530 ([OOP] Wrongly rejects type_pointer => class_target (which have...
authorTobias Burnus <burnus@net-b.de>
Tue, 30 Jul 2013 07:18:54 +0000 (09:18 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 30 Jul 2013 07:18:54 +0000 (09:18 +0200)
commitb882aaa84d700fc91c00ad314e876ce40aab370b
tree73dced4e09b669c48b2b9e9dd25db72d0c002a75
parent14a8763670981928cef330b7bf8c0244bb982a29
re PR fortran/57530 ([OOP] Wrongly rejects  type_pointer => class_target (which have identical declared type))

2013-07-30  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57530
        * trans-expr.c (gfc_trans_class_assign): Handle CLASS array
        functions.
        (gfc_trans_pointer_assign): Ditto and support pointer assignment
        of a polymorphic var to a nonpolymorphic var.

2013-07-30  Tobias Burnus  <burnus@net-b.de>

        PR fortran/57530
        * gfortran.dg/pointer_assign_8.f90: New.
        * gfortran.dg/pointer_assign_9.f90: New.
        * gfortran.dg/pointer_assign_10.f90: New.
        * gfortran.dg/pointer_assign_11.f90: New.

From-SVN: r201328
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pointer_assign_10.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pointer_assign_11.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pointer_assign_8.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pointer_assign_9.f90 [new file with mode: 0644]