From patchwork Wed Oct 10 09:15:53 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [C++,testcase] PR 50478 From: Paolo Carlini X-Patchwork-Id: 190585 Message-Id: <50753CC9.4030509@oracle.com> To: "gcc-patches@gcc.gnu.org" Date: Wed, 10 Oct 2012 11:15:53 +0200 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"} ); +}