]> gcc.gnu.org Git - gcc.git/commit
re PR fortran/34133 (Bind(c,name="") should be rejected for dummies; F2008: allow...
authorTobias Burnus <burnus@net-b.de>
Fri, 30 Nov 2007 12:16:35 +0000 (13:16 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Fri, 30 Nov 2007 12:16:35 +0000 (13:16 +0100)
commit1eabf70a84050fcc178cd06fb11391c242f09a28
treed4f2c1d1ab74a0ce0f88e31dc99507d1e23dfbd5
parente6ef7325b82cf4fd0fd431deada1b37e29542230
re PR fortran/34133 (Bind(c,name="") should be rejected for dummies; F2008: allow bind(c) for internal procs)

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.

From-SVN: r130535
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/match.h
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bind_c_usage_11.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/bind_c_usage_12.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/bind_c_usage_9.f03
This page took 0.058362 seconds and 5 git commands to generate.