From patchwork Thu Oct 11 02:36:33 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 190781 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 6BDB72C0089 for ; Thu, 11 Oct 2012 13:36:58 +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=1350527819; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Message-ID:Date:From:User-Agent:MIME-Version: To:Subject:Content-Type:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=3BBEPhhFUqz7E1JIvA+FbGDWDW0=; b=PWAYICeo3GV+wX+ EsWIcQCxRSwVvwMfO+JcQOX8Ztr+npGK8mxbZyZLSOZw1cWHzdnKXHXvwx3hfhDq vkSGeD0PVAiLWTEqhQH3eXFKoefQJznElkeyP0HvByvZjmpLR1bURjbvn4CMP8k+ YqtAdRix6Tmvma9vgaL2VksKCo/o= 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:Subject:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=yeZhcQczkC043ml0HjPEiSRbTuBbUbTZm1k9dH/hkkDahyqt9pYYzCOGRG0yI1 HEUOW0vy1bMouLoCxW/pE1Rx9huJ1uToZW6/3mzsv80HiXN7JPoqVvscGx59jCH/ 1nHPAJ27I8jH4FUEH7Dv7U0Dffu4vLTe5QL3ZB/3Le+Oc=; Received: (qmail 21184 invoked by alias); 11 Oct 2012 02:36:50 -0000 Received: (qmail 20774 invoked by uid 22791); 11 Oct 2012 02:36:46 -0000 X-SWARE-Spam-Status: No, hits=-7.9 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_NO, RCVD_IN_HOSTKARMA_YE, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from acsinet15.oracle.com (HELO acsinet15.oracle.com) (141.146.126.227) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 11 Oct 2012 02:36:38 +0000 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by acsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q9B2aaAV026547 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 11 Oct 2012 02:36:36 GMT Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q9B2aZ5F017510 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 11 Oct 2012 02:36:36 GMT Received: from abhmt109.oracle.com (abhmt109.oracle.com [141.146.116.61]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q9B2aZPS003894 for ; Wed, 10 Oct 2012 21:36:35 -0500 Received: from [192.168.1.4] (/79.43.235.203) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 10 Oct 2012 19:36:35 -0700 Message-ID: <507630B1.1060402@oracle.com> Date: Thu, 11 Oct 2012 04:36:33 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:15.0) Gecko/20120825 Thunderbird/15.0 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: [C++ testcase] PR 43663 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 Hi, I'm committing the testcase and closing the PR as fixed. Tested x86_64-linux. Thanks, Paolo. ///////////////////////////// 2012-10-10 Paolo Carlini PR c++/43663 * g++.dg/init/bitfield3.C: New. Index: g++.dg/init/bitfield3.C =================================================================== --- g++.dg/init/bitfield3.C (revision 0) +++ g++.dg/init/bitfield3.C (working copy) @@ -0,0 +1,11 @@ +// PR c++/43663 + +struct S +{ + S(): i(0) {} + int i : 3; +}; + +S s; + +const int& cr(s.i);