From patchwork Mon Dec 24 09:27:27 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 208040 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 183812C008F for ; Mon, 24 Dec 2012 20:27:49 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1356946070; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Message-ID:Date:From:User-Agent:MIME-Version: To:CC:Subject:References:In-Reply-To:Content-Type:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=DzN9XGsaQ0Kub7ppSKOM4226K2w=; b=uWf8fxHOXB4fpX/5DxogdF9VAkSu74aRMGnjaV3TruFe5o0cTKOkF1wT0cRgjq plYW9P1Z4JO1xt0eZYQP0Ln6PTJqqFYDX1IonwGeG5VHPbMPmW7c9qGqS6ilLhIO N2wZxxZIBoCk2DN48MCXSRRpNSUq5N9FRk3cCbcAx/sXM= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:References:In-Reply-To:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=m5V0BTJwOWZFKZS19VUhX+6K5E0RPsjDn+fWRzo+jxPyF0JFZBeEl566AJjML0 ZGz5xt9G0HOu1uLZqQCNPwPQSPig2mRMv/Obv6riIfIU17D6I4J3YC8KpY6+JGPQ A/WTS0hXxIE9iuPnBGvZg1dnjsmJB9Yi/FIcXPYHalymo=; Received: (qmail 26940 invoked by alias); 24 Dec 2012 09:27:44 -0000 Received: (qmail 26930 invoked by uid 22791); 24 Dec 2012 09:27:43 -0000 X-SWARE-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL, BAYES_00, FSL_NEW_HELO_USER, KHOP_THREADED, RCVD_IN_HOSTKARMA_NO, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from userp1040.oracle.com (HELO userp1040.oracle.com) (156.151.31.81) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 24 Dec 2012 09:27:32 +0000 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qBO9RUGU021392 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 24 Dec 2012 09:27:31 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qBO9RU5r012221 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 24 Dec 2012 09:27:30 GMT Received: from abhmt110.oracle.com (abhmt110.oracle.com [141.146.116.62]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qBO9RTw1006750; Mon, 24 Dec 2012 03:27:29 -0600 Received: from [192.168.1.4] (/79.17.189.202) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 24 Dec 2012 01:27:29 -0800 Message-ID: <50D81FFF.1050303@oracle.com> Date: Mon, 24 Dec 2012 10:27:27 +0100 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Jason Merrill CC: gcc-patches List Subject: Re: C++ PATCH for c++/54325 (wrong error initializing abstract base class) References: <50C1790B.3040704@redhat.com> <50D44A43.2080500@oracle.com> <50D61845.4060501@redhat.com> <50D7E081.30706@redhat.com> <50D81270.3080705@oracle.com> In-Reply-To: <50D81270.3080705@oracle.com> X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org ... to explain more concretely what I mean, if I *brutally* hack mainline per the below, then the testcase is accepted. Paolo. ////////////////// Index: call.c =================================================================== --- call.c (revision 194659) +++ call.c (working copy) @@ -7535,7 +7535,11 @@ build_new_method_call_1 (tree instance, tree fns, if (CONSTRUCTOR_NELTS (init_list) == 0 && TYPE_HAS_DEFAULT_CONSTRUCTOR (basetype) && !processing_template_decl) - init = build_value_init (basetype, complain); + { + push_deferring_access_checks (dk_no_check); + init = build_value_init (basetype, complain); + pop_deferring_access_checks (); + } /* If BASETYPE is an aggregate, we need to do aggregate initialization. */