This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/38477] [strict-aliasing] warning message contains compiler-generated symbols
- 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: 12 Dec 2008 12:09:03 -0000
- Subject: [Bug libstdc++/38477] [strict-aliasing] warning message contains compiler-generated symbols
- References: <bug-38477-16067@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #9 from rguenth at gcc dot gnu dot org 2008-12-12 12:09 -------
Btw, if you want to dig yourself - the problem is that the alias set of
const struct _Rb_tree_node is not a subset of struct test. So the access
of any part of an object of type struct test through a pointer of type
const struct _Rb_tree_node * invokes undefined behavior (from the middle-end
perspective).
See alias.c:record_component_aliases for how the relationship is built.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38477