[Bug fortran/34133] Bind(c,name="") should be rejected for dummies; F2008: allow bind(c) for internal procs
burnus at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Nov 30 12:17:00 GMT 2007
------- Comment #9 from burnus at gcc dot gnu dot org 2007-11-30 12:16 -------
Subject: Bug 34133
Author: burnus
Date: Fri Nov 30 12:16:35 2007
New Revision: 130535
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130535
Log:
2007-11-20 Tobias Burnus <burnus@net-b.de>
PR fortran/34133
* match.h: Add bool allow_binding_name to gfc_match_bind_c.
* decl.c
* (match_attr_spec,gfc_match_bind_c_stmt,gfc_match_entry):
Adjust accordingly.
(gfc_match_bind_c): Add allow_binding_name argument, reject
binding name for dummy arguments.
(gfc_match_suffix,gfc_match_subroutine): Make use of
allow_binding_name.
2007-11-20 Tobias Burnus <burnus@net-b.de>
PR fortran/34133
* gfortran.dg/bind_c_usage_9.f03: Fixes; add -std=f2003.
* gfortran.dg/bind_c_usage_11.f03: New.
* gfortran.dg/bind_c_usage_12.f03: New.
Added:
trunk/gcc/testsuite/gfortran.dg/bind_c_usage_11.f03
trunk/gcc/testsuite/gfortran.dg/bind_c_usage_12.f03
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/decl.c
trunk/gcc/fortran/match.h
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/bind_c_usage_9.f03
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34133
More information about the Gcc-bugs
mailing list