From patchwork Thu Jul 4 10:26:16 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 256863 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 1CDC12C008F for ; Thu, 4 Jul 2013 20:26:30 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; q= dns; s=default; b=CyX1QfL5JrZ3ArdHq22/PknMsI5EkjsG/vu49t5JJxpiKQ zFvj8JxI7IGweufNEZU7VbkkeUgC8n+DINEr38qABp3R0/3cqRlx9eG0fNA3Cycb BOd9toFd1+4R2P1/s+MyQnraj2D1aknS4yeg1CeXUYwLdlgdeqUZ+rVflKd6s= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:subject:content-type; s= default; bh=nh0+n8WWVChCKGvH2mPL1wzPWwA=; b=fk9jWel/XvnQsld4UmSj RsMxhcSqCdwufMge7286e/2VrDley9Je5VhKQpFAPBIjImSsAA7RwiLcCT19EinU bGpopupqbiIEGRW47SR7gki5MNd820ylWvgIgx6Lk26ZA2uUH8HkO3akmrLekBnz QmFhuHbnqOcm0gnRiXNLMK8= Received: (qmail 19267 invoked by alias); 4 Jul 2013 10:26:23 -0000 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 Received: (qmail 19258 invoked by uid 89); 4 Jul 2013 10:26:23 -0000 X-Spam-SWARE-Status: No, score=-5.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_MED, RCVD_IN_HOSTKARMA_NO, RP_MATCHES_RCVD, SPF_PASS, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from aserp1040.oracle.com (HELO aserp1040.oracle.com) (141.146.126.69) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Thu, 04 Jul 2013 10:26:22 +0000 Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by aserp1040.oracle.com (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id r64AQKCa010180 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 4 Jul 2013 10:26:21 GMT Received: from userz7022.oracle.com (userz7022.oracle.com [156.151.31.86]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r64AQJ1k016742 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 4 Jul 2013 10:26:20 GMT Received: from abhmt110.oracle.com (abhmt110.oracle.com [141.146.116.62]) by userz7022.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id r64AQI8i010053 for ; Thu, 4 Jul 2013 10:26:19 GMT Received: from poldo4.casa (/79.46.231.213) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 04 Jul 2013 03:26:18 -0700 Message-ID: <51D54DC8.4040005@oracle.com> Date: Thu, 04 Jul 2013 12:26:16 +0200 From: Paolo Carlini User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130510 Thunderbird/17.0.6 MIME-Version: 1.0 To: "gcc-patches@gcc.gnu.org" Subject: [C++ testcase, committed] PR 54998 X-Virus-Found: No Hi, tested x86_64-linux, committed to mainline. Thanks, Paolo. ///////////////////////// 2013-07-04 Paolo Carlini PR c++/54998 * g++.dg/cpp0x/nsdmi-list3.C: New. Index: g++.dg/cpp0x/nsdmi-list3.C =================================================================== --- g++.dg/cpp0x/nsdmi-list3.C (revision 0) +++ g++.dg/cpp0x/nsdmi-list3.C (working copy) @@ -0,0 +1,21 @@ +// PR c++/54998 +// { dg-do compile { target c++11 } } + +class Foo { +public: +private: + static const int kRows = 4; + static const int kCols = 4; + + union { + float m_n[kRows][kCols]; + float m_m[kRows * kCols] = { + 1.0f, 0.0f, 0.0f, 0.0f, + 0.0f, 1.0f, 0.0f, 0.0f, + 0.0f, 0.0f, 1.0f, 0.0f, + 0.0f, 0.0f, 0.0f, 1.0f + }; + }; +}; + +Foo myFoo;