re PR fortran/44352 (ICE in string_to_single_character)
authorTobias Burnus <burnus@net-b.de>
Tue, 7 Dec 2010 20:29:22 +0000 (21:29 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 7 Dec 2010 20:29:22 +0000 (21:29 +0100)
commit9a14c44d46d12a49b3e1cde59dd235a7a44b02b6
treee7e1fc5703a091effe8fea53af8030ecc6d89a3f
parentf28ca2b9991aad21f2ab96100bc51e2a7bf4cfba
re PR fortran/44352 (ICE in string_to_single_character)

2010-12-07  Tobias Burnus  <burnus@net-b.de>

        PR fortran/44352
        * trans-expr.c (gfc_string_to_single_character): Return if not
        POINTER_TYPE_P.
        (gfc_trans_string_copy): gfc_build_addr_expr if src or dest is
        not a pointer.
        (gfc_trans_string_copy): Make sure the argument string type
        has a string length, fix indention, and remove not needed
        gfc_build_addr_expr.

2010-12-07  Tobias Burnus  <burnus@net-b.de>

        PR fortran/44352
        * gfortran.dg/string_4.f90: New.

From-SVN: r167569
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/string_4.f90 [new file with mode: 0644]