This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/52609] -Wstrict-aliasing / missed diagnostics
- From: "pawel_sikora at zoho dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Oct 2016 17:23:53 +0000
- Subject: [Bug other/52609] -Wstrict-aliasing / missed diagnostics
- Auto-submitted: auto-generated
- References: <bug-52609-4@http.gcc.gnu.org/bugzilla/>
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.
^~~~~~