[Bug fortran/48858] Incorrect error for same binding label on two generic interface specifics
burnus at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon May 20 20:09:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48858
--- Comment #14 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Author: burnus
Date: Mon May 20 20:03:48 2013
New Revision: 199118
URL: http://gcc.gnu.org/viewcvs?rev=199118&root=gcc&view=rev
Log:
2013-05-20 Tobias Burnus <burnus@net-b.de>
PR fortran/48858
* decl.c (gfc_match_bind_c_stmt): Add gfc_notify_std.
* match.c (gfc_match_common): Don't add commons to gsym.
* resolve.c (resolve_common_blocks): Add to gsym and
add checks.
(resolve_bind_c_comms): Remove.
(resolve_types): Remove call to the latter.
* trans-common.c (gfc_common_ns): Remove static var.
(gfc_map_of_all_commons): Add static var.
(build_common_decl): Correctly handle binding label.
2013-05-20 Tobias Burnus <burnus@net-b.de>
PR fortran/48858
* gfortran.dg/test_common_binding_labels.f03: Update dg-error.
* gfortran.dg/test_common_binding_labels_2_main.f03: Ditto.
* gfortran.dg/test_common_binding_labels_3_main.f03: Ditto.
* gfortran.dg/common_18.f90: New.
* gfortran.dg/common_19.f90: New.
* gfortran.dg/common_20.f90: New.
* gfortran.dg/common_21.f90: New.
Added:
trunk/gcc/testsuite/gfortran.dg/common_18.f90
trunk/gcc/testsuite/gfortran.dg/common_19.f90
trunk/gcc/testsuite/gfortran.dg/common_20.f90
trunk/gcc/testsuite/gfortran.dg/common_21.f90
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/fortran/match.c
trunk/gcc/fortran/resolve.c
trunk/gcc/fortran/trans-common.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/test_common_binding_labels.f03
trunk/gcc/testsuite/gfortran.dg/test_common_binding_labels_2_main.f03
trunk/gcc/testsuite/gfortran.dg/test_common_binding_labels_3_main.f03
More information about the Gcc-bugs
mailing list