On May 7, 2005, at 2:04 PM, Harald Dunkel wrote:
Hi folks,
The testcase has been created by grabbing some code fragments from libX11, XFree86 4.3 on Debian, amd64. -Wall complains about dereferencing type-punned pointer.
Stop right there, you said it warns, well this is a case where you are violating C89/C99/C++ aliasing rules so it is a bug in your code and not in GCC.
-- Pinski