From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22323 invoked by alias); 25 Apr 2002 07:49:05 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 22221 invoked from network); 25 Apr 2002 07:48:59 -0000 Received: from unknown (HELO dire.bris.ac.uk) (137.222.10.60) by sources.redhat.com with SMTP; 25 Apr 2002 07:48:59 -0000 Received: from cs.bris.ac.uk (actually host lunaleka.cs.bris.ac.uk) by dire.bris.ac.uk with SMTP-PRIV with ESMTP; Thu, 25 Apr 2002 08:48:42 +0100 Received: from manao.cs.bris.ac.uk (manao [137.222.102.67]) by cs.bris.ac.uk (8.9.3/8.9.3) with ESMTP id IAA14577; Thu, 25 Apr 2002 08:48:26 +0100 (BST) Received: from acm.org by manao.cs.bris.ac.uk (8.9.3) id IAA01613; Thu, 25 Apr 2002 08:48:25 +0100 (BST) Message-ID: <3CC7B4C9.9C8E9F26@acm.org> Date: Thu, 25 Apr 2002 01:11:00 -0000 From: Nathan Sidwell Reply-To: nathan@compsci.bristol.ac.uk X-Accept-Language: en MIME-Version: 1.0 To: Dan Nicolaescu CC: mike stump , jason@redhat.com, gcc@gcc.gnu.org, libstdc++@gcc.gnu.org Subject: Re: C++ aliasing rules References: <200204240235.TAA23236@kankakee.wrs.com> <200204241327.aa13343@gremlin-relay.ics.uci.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg01298.txt.bz2 Dan Nicolaescu wrote: > > I think the answer is no, as no matter what you do, you need to > > violate the notion of which struct type the object really was and you > > cannot get at the short without going though the struct first, and in > > the end, you cannot get through both struct types simultaneously. > > Does anybody disagree with Mike's statement above (wrt C++) ? Jason? I agree with Mike's analysis. nathan -- Dr Nathan Sidwell :: Computer Science Department :: Bristol University The voices in my head told me to say this nathan@acm.org http://www.cs.bris.ac.uk/~nathan/ nathan@cs.bris.ac.uk