Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
riscv-gcc-1
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
riscv-gcc-1
Commits
b2edc921
Commit
b2edc921
authored
Aug 06, 2010
by
Jason Merrill
Committed by
Jason Merrill
Aug 06, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* include/std/thread: Add deleted thread(thread&).
From-SVN: r162954
parent
309714d4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
7 deletions
+7
-7
libstdc++-v3/ChangeLog
+5
-0
libstdc++-v3/include/std/thread
+1
-0
libstdc++-v3/testsuite/30_threads/thread/cons/copy_neg.cc
+1
-7
No files found.
libstdc++-v3/ChangeLog
View file @
b2edc921
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
...
...
libstdc++-v3/include/std/thread
View file @
b2edc921
...
...
@@ -123,6 +123,7 @@ namespace std
public:
thread() = default;
thread(thread&) = delete;
thread(const thread&) = delete;
thread(thread&& __t)
...
...
libstdc++-v3/testsuite/30_threads/thread/cons/copy_neg.cc
View file @
b2edc921
...
...
@@ -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" }
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment