re PR fortran/48112 (generic interface to external function in module)
authorTobias Burnus <burnus@net-b.de>
Thu, 28 Apr 2011 05:48:18 +0000 (07:48 +0200)
committerTobias Burnus <burnus@gcc.gnu.org>
Thu, 28 Apr 2011 05:48:18 +0000 (07:48 +0200)
commita300121e62712fdafb2b508f8a392cffccf075c8
tree31b49be6d13c3e57672ee9ca8ef933d27ecce92c
parent77a30e9a5f8ffbf06702de86d9b58e075d1ddc71
re PR fortran/48112 (generic interface to external function in module)

2011-04-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/48112
        * resolve.c (resolve_fl_var_and_proc): Print diagnostic of
        function results only once.
        (resolve_symbol): Always resolve function results.

        PR fortran/48279
        * expr.c (gfc_check_vardef_context): Fix handling of generic
        EXPR_FUNCTION.
        * interface.c (check_interface0): Reject internal functions
        in generic interfaces, unless -std=gnu.

2011-04-28  Tobias Burnus  <burnus@net-b.de>

        PR fortran/48112
        PR fortran/48279
        * gfortran.dg/interface_35.f90: New.
        * gfortran.dg/erfc_scaled_1.f90: Don't compile with -pedantic.
        * gfortran.dg/func_result_6.f90: Add dg-warning.
        * gfortran.dg/bessel_1.f90: Ditto.
        * gfortran.dg/hypot_1.f90: Ditto.
        * gfortran.dg/proc_ptr_comp_20.f90: Ditto.
        * gfortran.dg/proc_ptr_comp_21.f90: Ditto.
        * gfortran.dg/interface_assignment_4.f90: Ditto.

From-SVN: r173059
13 files changed:
gcc/fortran/ChangeLog
gcc/fortran/expr.c
gcc/fortran/interface.c
gcc/fortran/resolve.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bessel_1.f90
gcc/testsuite/gfortran.dg/erfc_scaled_1.f90
gcc/testsuite/gfortran.dg/func_result_6.f90
gcc/testsuite/gfortran.dg/hypot_1.f90
gcc/testsuite/gfortran.dg/interface_35.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/interface_assignment_4.f90
gcc/testsuite/gfortran.dg/proc_ptr_comp_20.f90
gcc/testsuite/gfortran.dg/proc_ptr_comp_21.f90