[Bug c++/38297] O2 causes invalid code

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Nov 28 01:39:00 GMT 2008



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-11-28 01:38 -------
What is byte typedef?  Is it unsigned char or signed char?  If so then you are
violating aliasing rules by modifying a char* via that pointer type.  Yes
char/unsigned char/signed char are special but their pointer types are not.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


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



More information about the Gcc-bugs mailing list