From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10837 invoked by alias); 7 Aug 2010 17:28:06 -0000 Received: (qmail 10768 invoked by uid 48); 7 Aug 2010 17:27:56 -0000 Date: Sat, 07 Aug 2010 17:28:00 -0000 Message-ID: <20100807172756.10767.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: "navin dot kumar at gmail dot com" 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/msg00541.txt.bz2 ------- Comment #10 from navin dot kumar at gmail dot com 2010-08-07 17:27 ------- Richard, correct references in C++ cannot bind to NULL. So gcc should derive non-NULL-ness when the argument is a reference. It seems to correctly do this in the case of foo3 and fooB, but fails to do so for foo1 and fooA. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45221