fortran] Fix PR 85781, ICE on valid
authorTobias Burnus <tobias@codesourcery.com>
Mon, 27 Jan 2020 09:13:27 +0000 (10:13 +0100)
committerTobias Burnus <tobias@codesourcery.com>
Mon, 27 Jan 2020 09:13:27 +0000 (10:13 +0100)
commit86075aa5dd0b1ed3f6c9c67d0d3058c6c5c19d65
tree3a4df3f42a59eb04ea8504112bfe74248e68c562
parent40bf3f1fd058028988b2625f89efe6bb811a4185
fortran] Fix PR 85781, ICE on valid

        PR fortran/85781
        * trans-expr.c (gfc_conv_substring): Handle non-ARRAY_TYPE strings
        of Bind(C) procedures.

        PR fortran/85781
        * gfortran.dg/bind_c_char_2.f90: New.
        * gfortran.dg/bind_c_char_3.f90: New.
        * gfortran.dg/bind_c_char_4.f90: New.
        * gfortran.dg/bind_c_char_5.f90: New.
gcc/fortran/ChangeLog
gcc/fortran/trans-expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/bind_c_char_2.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/bind_c_char_3.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/bind_c_char_4.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/bind_c_char_5.f90 [new file with mode: 0644]