]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR fortran/34145 (single_char_string.f90 fails with -fdefault-integer-8)
authorThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 6 Sep 2010 19:43:58 +0000 (19:43 +0000)
committerThomas Koenig <tkoenig@gcc.gnu.org>
Mon, 6 Sep 2010 19:43:58 +0000 (19:43 +0000)
commitf884552b4f02a94b32d070715a91787753f6128b
treef6863c4f091e031bf4d0aaf4be1d0d4b3816ca9b
parentf973b6486953e926ee6795c879af3986e81967b1
re PR fortran/34145 (single_char_string.f90 fails with -fdefault-integer-8)

2010-09-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/34145
* trans-expr.c (gfc_conv_substring):  If start and end
of the string reference are equal, set the length to one.

2010-09-06  Thomas Koenig  <tkoenig@gcc.gnu.org>

PR fortran/34145
* gfortran.dg/char_length_17.f90:  New test.

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