This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/42179] Incorrect optimization (-O2) yields wrong code (regression)
- From: "rguenth at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Nov 2009 16:39:25 -0000
- Subject: [Bug c/42179] Incorrect optimization (-O2) yields wrong code (regression)
- References: <bug-42179-6373@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from rguenth at gcc dot gnu dot org 2009-11-26 16:39 -------
The frontend code should indeed be able to unconditionally warn for
((union ieee_double_extract *)&(x.d))->s.exp because it can see both
the underlying object and the access through the non-conflicting type.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42179