]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/fortran/decl.c
re PR fortran/38160 (C Binding: Kind parameter checking too strict and too late)
authorTobias Burnus <burnus@net-b.de>
Sat, 22 Nov 2008 18:18:05 +0000 (19:18 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Sat, 22 Nov 2008 18:18:05 +0000 (19:18 +0100)
commit2ec855f1f74eb35dc8e2909b837ff7d8888d2220
tree9b55d331fc080cfba7104b909bfed362f85a302e
parent9d50ba211c7363f3f693a33a0000219af56fc46e
re PR fortran/38160 (C Binding: Kind parameter checking too strict and too late)

2008-11-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/38160
        * trans-types.c (gfc_validate_c_kind): Remove function.
        * decl.c (gfc_match_kind_spec): Add C kind parameter check.
          (verify_bind_c_derived_type): Remove gfc_validate_c_kind call.
          (verify_c_interop_param): Update call.
        * gfortran.h (verify_bind_c_derived_type): Update prototype.
          (gfc_validate_c_kind): Remove.
        * symbol.c (verify_bind_c_derived_type): Update verify_c_interop
        * call.
        * resolve.c (gfc_iso_c_func_interface): Ditto.

2008-11-22  Tobias Burnus  <burnus@net-b.de>

        PR fortran/38160
        * gfortran.dg/bind_c_usage_18.f90: New test.
        * gfortran.dg/c_kind_tests_2.f03: Update dg-messages.
        * gfortran.dg/interop_params.f03: Ditto.

From-SVN: r142124
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/gfortran.h
gcc/fortran/resolve.c
gcc/fortran/symbol.c
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bind_c_usage_18.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/c_kind_tests_2.f03
gcc/testsuite/gfortran.dg/interop_params.f03