This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/20689] New: strict aliasing with temporary variable never gives warnings
- From: "varun0005 at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Mar 2005 09:59:11 -0000
- Subject: [Bug c/20689] New: strict aliasing with temporary variable never gives warnings
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
int i;
void *p=(void *)&i;
gives strict-aliasing warning
but
int i,*o;
o=&i;
void *p= o;
doesn't give any warning
--
Summary: strict aliasing with temporary variable never gives
warnings
Product: gcc
Version: 3.3.4
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: varun0005 at gmail dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20689