This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/40305] strict aliasing and inlining
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 May 2009 13:50:34 -0000
- Subject: [Bug c/40305] strict aliasing and inlining
- References: <bug-40305-17778@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jakub at gcc dot gnu dot org 2009-05-30 13:50 -------
It is invalid. f->a is accessed through an incompatible type (void * rather
than int *). And gcc even warns about it, with -Wstrict-aliasing=2 or
-Wstrict-aliasing=1.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40305