From patchwork Wed Oct 10 09:15:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Carlini X-Patchwork-Id: 190585 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 A512E2C0088 for ; Wed, 10 Oct 2012 20:16:14 +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=1350465375; 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=j3engFT5OBbR7KbXQ/yXHXsE7Y8=; b=wC3LGU7GD1BsNl1 4kQFHh1u1HLjyrMSxx8lqMzKqNvcQ7npjhoVxjvK32lM9d08MZW7z02f8QA6hJkA fyOFavtQX+lfffThpS/saXZazkBOAytPoXMMQB1mp/9PBd1LHVHGXwCaFsVMBSOc Cm0ds/uDn3iWvhAZescZhZC4aWRE= 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=ZJL2MVSMKleWSGF9jaA6oLV6aviCS/oM72hgAnuoc+QMWsn8B6eW3CqVdKj/NX /WClno1KkIW5z3JO6BpJSCglRTmEfAPBzKKRWbO+jU4i9sV3X+B8JbIb4NzdDem/ mVZwanBpSV63NaJG5/jR/V1q85yc0hSnpqZ5g6oySymS0=; Received: (qmail 9793 invoked by alias); 10 Oct 2012 09:16:04 -0000 Received: (qmail 9779 invoked by uid 22791); 10 Oct 2012 09:16:02 -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 rcsinet15.oracle.com (HELO rcsinet15.oracle.com) (148.87.113.117) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 10 Oct 2012 09:15:57 +0000 Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q9A9FtDe015662 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 10 Oct 2012 09:15:56 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 q9A9FtEq017834 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Wed, 10 Oct 2012 09:15:55 GMT Received: from abhmt102.oracle.com (abhmt102.oracle.com [141.146.116.54]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id q9A9Fsls008758 for ; Wed, 10 Oct 2012 04:15:54 -0500 Received: from [192.168.1.4] (/79.43.235.203) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 10 Oct 2012 02:15:54 -0700 Message-ID: <50753CC9.4030509@oracle.com> Date: Wed, 10 Oct 2012 11:15:53 +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 50478 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, adding the testcase and closing the PR as fixed. Thanks, Paolo. ////////////////////////////// 2012-10-10 Paolo Carlini PR c++/50478 * g++.dg/cpp0x/initlist67.C: New. Index: g++.dg/cpp0x/initlist67.C =================================================================== --- g++.dg/cpp0x/initlist67.C (revision 0) +++ g++.dg/cpp0x/initlist67.C (working copy) @@ -0,0 +1,27 @@ +// PR c++/50478 +// { dg-do compile { target c++11 } } + +#include + +namespace std +{ + template + struct set + { + void insert(const _Key&); + void insert(initializer_list<_Key>); + }; + + struct string + { + string(const string&, __SIZE_TYPE__, __SIZE_TYPE__ = -1); + string(const char*); + string(initializer_list); + }; +} + +int main() +{ + std::set s; + s.insert( { "abc", "def", "hij"} ); +}