re PR fortran/52158 (Regression on character function with gfortran 4.7)
authorAlessandro Fanfarillo <fanfarillo.gcc@gmail.com>
Sun, 13 May 2012 10:52:32 +0000 (04:52 -0600)
committerTobias Burnus <burnus@gcc.gnu.org>
Sun, 13 May 2012 10:52:32 +0000 (12:52 +0200)
commit8ae1ec924d6775e4ed3dab5546ff8344b63321ee
treea3bff2c8461bdb75f783900d38a4aa797b862fe1
parentbf4c7d4a02e79fd43131865dbc104286130273ea
re PR fortran/52158 (Regression on character function with gfortran 4.7)

2012-05-13  Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>
            Tobias Burnus  <burnus@net-b.de>

        PR fortran/52158
        PR fortran/45170
        PR fortran/49430
        * resolve.c (resolve_fl_derived0): Deferred character length
        procedure components are supported.
        * trans-expr.c (gfc_conv_procedure_call): Handle TBP with
        deferred-length results.
        (gfc_string_to_single_character): Add a new check to prevent
        NULL read.
        (gfc_conv_procedure_call): Remove unuseful checks on
        symbol's attributes. Add new checks to prevent NULL read on
        string length.

2012-05-13  Alessandro Fanfarillo  <fanfarillo.gcc@gmail.com>

        PR fortran/45170
        * gfortran.dg/deferred_type_param_3.f90: New.
        * gfortran.dg/deferred_type_proc_pointer_1.f90: New.
        * gfortran.dg/deferred_type_proc_pointer_2.f90: New.

Co-Authored-By: Tobias Burnus <burnus@net-b.de>
From-SVN: r187436
gcc/fortran/ChangeLog
gcc/fortran/resolve.c
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/deferred_type_param_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/deferred_type_proc_pointer_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/deferred_type_proc_pointer_2.f90 [new file with mode: 0644]