public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [C++ testcase] PR 50478
@ 2012-10-10  9:48 Paolo Carlini
  0 siblings, 0 replies; only message in thread
From: Paolo Carlini @ 2012-10-10  9:48 UTC (permalink / raw)
  To: gcc-patches

[-- Attachment #1: Type: text/plain, Size: 102 bytes --]

Hi,

adding the testcase and closing the PR as fixed.

Thanks,
Paolo.

//////////////////////////////

[-- Attachment #2: CL_50478 --]
[-- Type: text/plain, Size: 104 bytes --]

2012-10-10  Paolo Carlini  <paolo.carlini@oracle.com>

	PR c++/50478
	* g++.dg/cpp0x/initlist67.C: New.

[-- Attachment #3: patch_50478 --]
[-- Type: text/plain, Size: 694 bytes --]

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 <initializer_list>
+
+namespace std
+{
+  template<typename _Key>
+    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<char>);
+  };
+}
+
+int main()
+{
+  std::set<std::string> s;
+  s.insert( { "abc", "def", "hij"} );
+}

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2012-10-10  9:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-10  9:48 [C++ testcase] PR 50478 Paolo Carlini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).