https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85781
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Tobias Burnus <bur...@gcc.gnu.org>: https://gcc.gnu.org/g:86075aa5dd0b1ed3f6c9c67d0d3058c6c5c19d65 commit r10-6240-g86075aa5dd0b1ed3f6c9c67d0d3058c6c5c19d65 Author: Tobias Burnus <tob...@codesourcery.com> Date: Mon Jan 27 10:13:27 2020 +0100 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.