]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/32797 ([ISO C Binding] Internal Error: gfc_basic_typename(): Undefined...
authorChristopher D. Rickett <crickett@lanl.gov>
Mon, 23 Jul 2007 17:47:16 +0000 (17:47 +0000)
committerTobias Burnus <burnus@gcc.gnu.org>
Mon, 23 Jul 2007 17:47:16 +0000 (19:47 +0200)
commitd8fa96e0895efa743ade7d3dcd12a4f92909382d
tree0d4e807824b3a8f0020eb56a4163295d31415a69
parentf4e00f444bc09fae39ee050ceb3d1ba16481293a
re PR fortran/32797 ([ISO C Binding] Internal Error: gfc_basic_typename(): Undefined type)

2007-07-23  Christopher D. Rickett  <crickett@lanl.gov>

        PR fortran/32797
        PR fortran/32800
        * decl.c (verify_bind_c_sym): Use the result symbol for functions
        with a result clause.  Warn if implicitly typed.  Verify the type
        and rank of the SHAPE argument, if given.
        * resolve.c (gfc_iso_c_sub_interface): Use gfc_procedure_use to
        check the actual args against the formal, sorting them if
        necessary.
        * symbol.c (gen_shape_param): Initialize type of SHAPE param to
        BT_VOID.

2007-07-23  Christopher D. Rickett  <crickett@lanl.gov>

        PR fortran/32797
        PR fortran/32800
        * gfortran.dg/bind_c_usage_8.f03: New test case.
        * gfortran.dg/c_f_pointer_tests_2.f03: Ditto.
        * gfortran.dg/c_ptr_tests_5.f03: Updated expected error message.

From-SVN: r126856
gcc/fortran/ChangeLog
gcc/fortran/decl.c
gcc/fortran/resolve.c
gcc/fortran/symbol.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bind_c_usage_8.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/c_f_pointer_tests_2.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/c_ptr_tests_5.f03