[Bug other/52609] -Wstrict-aliasing / missed diagnostics
pawel_sikora at zoho dot com
gcc-bugzilla@gcc.gnu.org
Tue Oct 25 17:25:00 GMT 2016
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52609
Pawel Sikora <pawel_sikora at zoho dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to fail| |7.0
--- Comment #5 from Pawel Sikora <pawel_sikora at zoho dot com> ---
still missed diagnostics for bug2():
pr52609.c: In function ‘bug1’:
pr52609.c:6:9: warning: dereferencing type-punned pointer will break
strict-aliasing rules [-Wstrict-aliasing]
return *(float*)(&buffer[0]); // warning.
^~~~~~
More information about the Gcc-bugs
mailing list