From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25656 invoked by alias); 16 Dec 2013 20:28:31 -0000 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 Received: (qmail 25626 invoked by uid 55); 16 Dec 2013 20:28:28 -0000 From: "hubicka at ucw dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/59226] [4.9 Regression] ICE: in record_target_from_binfo, at ipa-devirt.c:661 Date: Mon, 16 Dec 2013 20:28:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at ucw dot cz X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-12/txt/msg01430.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59226 --- Comment #9 from Jan Hubicka --- > Honza, > > I've tested your patch from comment 7 and it doesn't work. > However your suggestion "to simply return NULL when inner_binfo is NULL" > does seem to work fine. I've successfully build Chromium with it. Good to know. I am however not sure if it is safe - this scenario happens in "diamond" shaped virtual inheritance and here we know we visited the base in question on different path. But I wonder if we can encounter different types of thunks. I put more complete attempt to http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58252 Honza