From patchwork Sun Sep 25 10:43:11 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 116272 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 94CA6B6F75 for ; Sun, 25 Sep 2011 20:45:08 +1000 (EST) Received: (qmail 31170 invoked by alias); 25 Sep 2011 10:45:04 -0000 Received: (qmail 31107 invoked by uid 22791); 25 Sep 2011 10:45:03 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from rcsinet15.oracle.com (HELO rcsinet15.oracle.com) (148.87.113.117) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 25 Sep 2011 10:44:46 +0000 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p8PAig84025850 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Sun, 25 Sep 2011 10:44:46 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 p8PAiN9n025629 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sun, 25 Sep 2011 10:44:23 GMT Received: from abhmt114.oracle.com (abhmt114.oracle.com [141.146.116.66]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p8PAiHcf005686 for ; Sun, 25 Sep 2011 05:44:17 -0500 Received: from [192.168.1.4] (/79.47.195.141) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Sun, 25 Sep 2011 03:44:17 -0700 Message-ID: <4E7F05BF.3010209@oracle.com> Date: Sun, 25 Sep 2011 12:43:11 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20110907 Thunderbird/6.0.2 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: [C++ testcase, committed] PR 50280 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 as obvious the testcase and closing the PR as fixed for 4.7. Thanks, Paolo. ///////////////////// 2011-09-25 Paolo Carlini PR c++/50280 * g++.dg/template/bitfield1.C: New. Index: g++.dg/template/bitfield1.C =================================================================== --- g++.dg/template/bitfield1.C (revision 0) +++ g++.dg/template/bitfield1.C (revision 0) @@ -0,0 +1,11 @@ +// PR c++/50280 + +struct S { int bf : 3; }; + +template +void make_pair(_T1& __x) {} + +void foo() { + const S s = S(); + make_pair(s.bf); +}