From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 866 invoked by alias); 27 Sep 2009 06:23:05 -0000 Received: (qmail 858 invoked by uid 22791); 27 Sep 2009 06:23:05 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 27 Sep 2009 06:23:01 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id E7031290032; Sun, 27 Sep 2009 08:22:58 +0200 (CEST) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FbLFTmMVcTec; Sun, 27 Sep 2009 08:22:52 +0200 (CEST) Received: from [192.168.1.3] (88-122-75-42.rev.libertysurf.net [88.122.75.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mel.act-europe.fr (Postfix) with ESMTP id 4016929003D; Sun, 27 Sep 2009 08:22:52 +0200 (CEST) From: Eric Botcazou To: Richard Guenther Subject: Re: On VIEW_CONVERT_EXPRs and TBAA Date: Sun, 27 Sep 2009 09:40:00 -0000 User-Agent: KMail/1.9.6 (enterprise 20070904.708012) Cc: gcc@gcc.gnu.org References: <200909262226.36100.ebotcazou@adacore.com> In-Reply-To: MIME-Version: 1.0 Content-Disposition: inline Message-Id: <200909270825.17108.ebotcazou@adacore.com> Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org X-SW-Source: 2009-09/txt/msg00553.txt.bz2 > C++ for this case has a FIELD_DECL in Derived of type Base, so the > middle-end sees d..i here (and thus also automatically > gets the TBAA hierarchy correct by means of recording component aliases). Ada has a _Parent FIELD_DECL in Derived (of type a subtype of Base) so it should be able to do d._Parent.i and this would be a lot nicer IMO. -- Eric Botcazou