]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/34079 (Bind(C): Character argument/return value problems)
authorTobias Burnus <burnus@net-b.de>
Sun, 25 Nov 2007 22:02:53 +0000 (23:02 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Sun, 25 Nov 2007 22:02:53 +0000 (23:02 +0100)
commitbfd61955ce652ec1c4bb1228fcf43e46424ebf41
tree7450a7309aad864e7a3b61af66cf21d340b9b297
parenta4b7c9cd4c2df850eda972f7257ec0cdc6e60aae
re PR fortran/34079 (Bind(C): Character argument/return value problems)

2007-11-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34079
        * trans-types.c (gfc_return_by_reference,
        gfc_get_function_type): Do not return result of
        character-returning bind(C) functions as argument.
        * trans-expr.c (gfc_conv_function_call): Ditto.

2007-11-25  Tobias Burnus  <burnus@net-b.de>

        PR fortran/34079
        * gfortran.dg/bind_c_usage_10_c.c: Fix comment.
        * gfortran.dg/bind_c_usage_16.f03: New.
        * gfortran.dg/bind_c_usage_16_c.c: New.

From-SVN: r130414
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/fortran/trans-types.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bind_c_usage_10_c.c
gcc/testsuite/gfortran.dg/bind_c_usage_16.f03 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/bind_c_usage_16_c.c [new file with mode: 0644]