re PR fortran/52270 ([OOP] Polymorphic vars: wrong intent(in) check, passing nonptr...
authorTobias Burnus <burnus@net-b.de>
Fri, 2 Mar 2012 13:07:46 +0000 (14:07 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Fri, 2 Mar 2012 13:07:46 +0000 (14:07 +0100)
commitf18075fff5c1b445f7e8c5d452f29195ef50118e
tree96c85bf852f194d4f7de40a8e882b8ba7940a34b
parent2d68f67f2f107ec9629a003f6bba4b0878f61c36
re PR fortran/52270 ([OOP] Polymorphic vars: wrong intent(in) check, passing nonptr variable to intent(in) ptr dummy)

2012-03-02  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52270
        * expr.c (gfc_check_vardef_context): Fix check for
        intent-in polymorphic pointer .
        * interface.c (compare_parameter): Allow passing TYPE to
        intent-in polymorphic pointer.

2012-03-02  Tobias Burnus  <burnus@net-b.de>

        PR fortran/52270
        * gfortran.dg/class_51.f90: New.

From-SVN: r184784
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/interface.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/class_51.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/class_52.f90 [new file with mode: 0644]