re PR fortran/27958 (assignments to and from zero-sized string selections not handled)
PR fortran/27958 * trans-expr.c (gfc_conv_substring): If the substring start is greater than its end, the length of the substring is zero, and not negative. (gfc_trans_string_copy): Don't generate a call to _gfortran_copy_string when destination length is zero. * gcc/testsuite/gfortran.dg/substr_2.f: New test. From-SVN: r114496
Showing
gcc/testsuite/gfortran.dg/substr_2.f
0 → 100644
Please
register
or
sign in
to comment