re PR middle-end/26001 (expand uses the wrong part of the string for array accesses)
authorAndrew Pinski <pinskia@physics.uc.edu>
Wed, 1 Feb 2006 01:03:52 +0000 (01:03 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Wed, 1 Feb 2006 01:03:52 +0000 (17:03 -0800)
commitf51a281b458a3fd4433a339f99a3ec29504b8959
treee83f3620b518a00126b9852a9bbf074173c665d6
parent60ec1aa4bc17d19e0a89c9b369caa1cc5b30b0ea
re PR middle-end/26001 (expand uses the wrong part of the string for array accesses)

2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/26001
        * gfortran.dg/data_char_2.f90: New.
2006-01-31  Andrew Pinski  <pinskia@physics.uc.edu>

        PR middle-end/26001
        * expr.c (expand_expr_real_1) <case ARRAY_REF>:
        Use the corrected index for the character
        out of the string constant.

From-SVN: r110465
gcc/ChangeLog
gcc/expr.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/data_char_2.f90 [new file with mode: 0644]