From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5849 invoked by alias); 24 Apr 2017 12:12:34 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 5832 invoked by uid 89); 24 Apr 2017 12:12:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-23.5 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=welcome! X-HELO: nikam.ms.mff.cuni.cz Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 24 Apr 2017 12:12:32 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 71F10542197; Mon, 24 Apr 2017 14:12:31 +0200 (CEST) Date: Mon, 24 Apr 2017 12:31:00 -0000 From: Jan Hubicka To: Martin =?iso-8859-2?Q?Li=B9ka?= Cc: Jakub Jelinek , gcc-patches@gcc.gnu.org, rguenther@suse.de Subject: Re: Fix -fdump-ipa-all ICE Message-ID: <20170424121231.GA14052@kam.mff.cuni.cz> References: <20170424104819.GB15800@kam.mff.cuni.cz> <20170424105151.GM1809@tucnak> <750978e8-b157-be2f-f1b0-1c9483fc9d81@suse.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <750978e8-b157-be2f-f1b0-1c9483fc9d81@suse.cz> User-Agent: Mutt/1.5.23 (2014-03-12) X-SW-Source: 2017-04/txt/msg01038.txt.bz2 > On 04/24/2017 12:51 PM, Jakub Jelinek wrote: > > No testcase in the patch? > > As Honza is busy right not, I'm sending one. Thanks (in fact I just forgot to include it and was about to send it now) but help is welcome! Honza > > Martin > >From 87cef5e3123723f81c44dfafe86fa10b7925cea8 Mon Sep 17 00:00:00 2001 > From: marxin > Date: Mon, 24 Apr 2017 14:02:54 +0200 > Subject: [PATCH] Add new test-case. > > gcc/testsuite/ChangeLog: > > 2017-04-24 Martin Liska > > * g++.dg/ipa/pr79931.C: New test. > --- > gcc/testsuite/g++.dg/ipa/pr79931.C | 24 ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) > create mode 100644 gcc/testsuite/g++.dg/ipa/pr79931.C > > diff --git a/gcc/testsuite/g++.dg/ipa/pr79931.C b/gcc/testsuite/g++.dg/ipa/pr79931.C > new file mode 100644 > index 00000000000..78f6e03c458 > --- /dev/null > +++ b/gcc/testsuite/g++.dg/ipa/pr79931.C > @@ -0,0 +1,24 @@ > +/* { dg-do compile } */ > +/* { dg-options "-O2 -fdump-ipa-all" } */ > + > +class DocumentImpl; > +struct NodeImpl > +{ > + virtual DocumentImpl * getOwnerDocument(); > + virtual NodeImpl * getParentNode(); > + virtual NodeImpl * removeChild(NodeImpl *oldChild); > +}; > +struct AttrImpl : NodeImpl > +{ > + NodeImpl *insertBefore(NodeImpl *newChild, NodeImpl *refChild); > +}; > +struct DocumentImpl : NodeImpl > +{ > + virtual NodeImpl *removeChild(NodeImpl *oldChild); > + virtual int* getRanges(); > +}; > +NodeImpl *AttrImpl::insertBefore(NodeImpl *newChild, NodeImpl *refChild) { > + NodeImpl *oldparent = newChild->getParentNode(); > + oldparent->removeChild(newChild); > + this->getOwnerDocument()->getRanges(); > +} > -- > 2.12.2 >