void* <-> char* aliasing rule, C standard or glitch?

Steven Bosscher stevenb.gcc@gmail.com
Sat Jul 1 17:59:00 GMT 2006


On 7/1/06, Elmar Krieger <elmar@cmbi.ru.nl> wrote:
> I searched hard, but couldn't determine conclusively if the C standard
> allows to alias a void* pointer with a char* pointer.

Search in the GCC documentation, under -fstrict-aliasing:

http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Optimize-Options.html#index-fstrict_002daliasing-542

Gr.
Steven



More information about the Gcc mailing list