From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13811 invoked by alias); 12 Dec 2008 12:10:24 -0000 Received: (qmail 13338 invoked by uid 48); 12 Dec 2008 12:09:03 -0000 Date: Fri, 12 Dec 2008 12:10:00 -0000 Message-ID: <20081212120903.13337.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug libstdc++/38477] [strict-aliasing] warning message contains compiler-generated symbols In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-12/txt/msg01331.txt.bz2 ------- 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