This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug middle-end/26001] [4.1/4.2 Regression] expand uses the wrong part of the string for array accesses



------- Comment #17 from pinskia at gcc dot gnu dot org  2006-01-31 05:19 -------
Created an attachment (id=10765)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=10765&action=view)
Patch which still needs to bootstrap/tested but it works on my simple example

ChangeLog:
* expr.c (expand_expr_real_1) <case ARRAY_REF>:  Use the corrected index for
the character
out of the string constant.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26001


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]