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] |
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.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |