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 testsuite/33775] Memset



------- 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


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