This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/20689] strict aliasing with temporary variable never gives warnings
- From: "falk at debian dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Mar 2005 12:23:24 -0000
- Subject: [Bug c/20689] strict aliasing with temporary variable never gives warnings
- References: <20050330095906.20689.varun0005@gmail.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From falk at debian dot org 2005-03-30 12:23 -------
(In reply to comment #2)
> I mean that since in case where you are doing "void *p=(void *)&i" then
> according to strict-aliasing rules we get " warning: dereferencing type-punned
> pointer will break strict-aliasing rules"
No, you don't. Please provide a *complete* test case, with the command line
you use and the output you get.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20689