]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/85521 (ICE in gfc_resolve_character_array_constructor, at fortran/array...
authorSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 11 May 2018 17:59:05 +0000 (17:59 +0000)
committerSteven G. Kargl <kargl@gcc.gnu.org>
Fri, 11 May 2018 17:59:05 +0000 (17:59 +0000)
commit59a3192bc33e619de7939bdeb70effe43e089ba3
tree18c3d7544b4aadce4f89bd8149e46901e768e46d
parenteb9c2ee54a8a66c44c355006038cd0cc9dfdaba3
re PR fortran/85521 (ICE in gfc_resolve_character_array_constructor, at fortran/array.c:2049)

2018-05-11  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/85521
Backport from trunk
* array.c (gfc_resolve_character_array_constructor): Substrings
with upper bound smaller than lower bound are zero length strings.

2018-05-11  Steven G. Kargl  <kargl@gcc.gnu.org>

PR fortran/85521
Backport from trunk
* gfortran.dg/pr85521_1.f90: New test.
* gfortran.dg/pr85521_2.f90: New test.

From-SVN: r260175
gcc/fortran/ChangeLog
gcc/fortran/array.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/pr85521_1.f90 [new file with mode: 0644]
gcc/testsuite/gfortran.dg/pr85521_2.f90 [new file with mode: 0644]