This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/48112] [4.6/4.7 Regression] generic interface to external function in module
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 28 Apr 2011 05:48:28 +0000
- Subject: [Bug fortran/48112] [4.6/4.7 Regression] generic interface to external function in module
- Auto-submitted: auto-generated
- References: <bug-48112-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48112
--- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-04-28 05:48:23 UTC ---
Author: burnus
Date: Thu Apr 28 05:48:18 2011
New Revision: 173059
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173059
Log:
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.
Added:
trunk/gcc/testsuite/gfortran.dg/interface_35.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/expr.c
trunk/gcc/fortran/interface.c
trunk/gcc/fortran/resolve.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/bessel_1.f90
trunk/gcc/testsuite/gfortran.dg/erfc_scaled_1.f90
trunk/gcc/testsuite/gfortran.dg/func_result_6.f90
trunk/gcc/testsuite/gfortran.dg/hypot_1.f90
trunk/gcc/testsuite/gfortran.dg/interface_assignment_4.f90
trunk/gcc/testsuite/gfortran.dg/proc_ptr_comp_20.f90
trunk/gcc/testsuite/gfortran.dg/proc_ptr_comp_21.f90