From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3621 invoked by alias); 26 Jan 2015 23:54:04 -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 3520 invoked by uid 48); 26 Jan 2015 23:53:59 -0000 From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/64139] [4.9/5 Regression] ice in possible_polymorphic_call_targets, at ipa-devirt.c:2410 Date: Mon, 26 Jan 2015 23:54: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: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: hubicka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: dependson 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: 2015-01/txt/msg02974.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64139 Jan Hubicka changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |60871 --- Comment #7 from Jan Hubicka --- Here get_binfo_at_offset gives up looking for base of G of type B at offset 128. It identifies the base field correctly but then it gets lost looking up the binfo by looking into A instead of G bases. This is because in memory layout of G there is A in between G's data and G's virtual base. I suppose the binfo lookup may really need to be turned into a recursive function when virtual bases are involved. This seems to be the same issue as PR60871.