]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* include/std/thread: Add deleted thread(thread&).
authorJason Merrill <jason@redhat.com>
Fri, 6 Aug 2010 19:41:23 +0000 (15:41 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 6 Aug 2010 19:41:23 +0000 (15:41 -0400)
From-SVN: r162954

libstdc++-v3/ChangeLog
libstdc++-v3/include/std/thread
libstdc++-v3/testsuite/30_threads/thread/cons/copy_neg.cc

index 9690a7ed9033018835f41076ab90298e3be16023..ccdf13a939cdc77a220508ef30de61c39fcf9380 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-06  Jason Merrill  <jason@redhat.com>
+
+       * include/std/thread: Add deleted thread(thread&).
+       * testsuite/30_threads/thread/cons/copy_neg.cc: Remove XFAIL.
+
 2010-08-06  Paolo Carlini  <paolo.carlini@oracle.com>
 
        * include/std/tuple (pack_arguments): Rename to forward_as_tuple
index c348c76bc40ee518c5fff298776e00b755d77abc..8007edc15e7f06d597c9189b96e474e6e9304973 100644 (file)
@@ -123,6 +123,7 @@ namespace std
 
   public:
     thread() = default;
+    thread(thread&) = delete;
     thread(const thread&) = delete;
 
     thread(thread&& __t)
index db06e72b0f36f6aea57b99af5f4c2a0a68f85bbc..9d8681d471f041373e394bf3b9eddbd6836094ed 100644 (file)
@@ -27,13 +27,7 @@ void test01()
   // copy
   typedef std::thread test_type;
   test_type t1;
-  test_type t2(t1);            // { dg-error "deleted" "" { xfail *-*-* } }
+  test_type t2(t1);            // { dg-error "deleted" }
 }
 
-// This is failing for the wrong reason; it should fail because we're
-// trying to call the deleted copy constructor, but instead it fails
-// because we try to call the thread(_Callable&&,_Args&&...) constructor
-// and fail because thread isn't callable.  But that's OK for now.
-// { dg-error "" "" { target *-*-* } 30 }
-
 // { dg-prune-output "include" }