------- Comment #4 from pinskia at gcc dot gnu dot org  2008-11-28 02:20 -------
Yep you are violating C++ aliasing rules as you are accessing a char * as an
unsigned char*.  It would be ok if you accessed a char as an unsigned char but
you are accessing the pointers instead.

It is not the size which matters but rather the types which are being accessed
here.

*** This bug has been marked as a duplicate of 21920 ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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

Reply via email to