From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31424 invoked by alias); 7 Aug 2010 16:27:58 -0000 Received: (qmail 31348 invoked by uid 48); 7 Aug 2010 16:27:40 -0000 Date: Sat, 07 Aug 2010 16:27:00 -0000 Message-ID: <20100807162740.31347.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c++/45221] missed optimization with multiple bases and casting 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: 2010-08/txt/msg00535.txt.bz2 ------- Comment #9 from rguenth at gcc dot gnu dot org 2010-08-07 16:27 ------- (In reply to comment #7) > Richard, if you can't derive non-NULL-ness from X& y = *x, how do foo3 and fooB > avoid the null check? For both cases the C++ frontend do not emit the NULL check. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45221