This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug testsuite/33775] Memset
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 15 Oct 2007 11:14:27 -0000
- Subject: [Bug testsuite/33775] Memset
- References: <bug-33775-15216@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from pinskia at gcc dot gnu dot org 2007-10-15 11:14 -------
This code written as a[(char*)b] is valid even C code, in C, d[e] is the same
as *(d+e) so d[e] is the same as e[d]. So the code is valid and does the
correct thing. There is no bug here. Unless you can explain exactly why you
want the change, I am going to close this as invalid.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |gcc-bugs at gcc dot gnu dot
| |org
Component|classpath |testsuite
Product|classpath |gcc
Version|unspecified |unknown
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33775