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: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 17 Mar 2012 21:57:19 +0000
- Subject: [Bug other/52609] -Wstrict-aliasing / missed diagnostics
- Auto-submitted: auto-generated
- References: <bug-52609-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52609
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-03-17 21:57:19 UTC ---
>accessing unsigned* via float* looks buggy
It does not have to be if the original argument was originally of type float.
Aliasing is not about type of pointers but the type which is used to access and
such.