This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66360] thread_local variable needs copy constructor
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 01 Jun 2015 14:17:38 +0000
- Subject: [Bug c++/66360] thread_local variable needs copy constructor
- Auto-submitted: auto-generated
- References: <bug-66360-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66360
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2015-06-01
Ever confirmed|0 |1
--- Comment #2 from Jonathan Wakely <redi at gcc dot gnu.org> ---
struct non_copyable
{
non_copyable(const non_copyable &) = delete;
non_copyable();
};
struct wrapper
{
non_copyable value;
template <typename ...Args>
wrapper(Args &&... args)
: value(args...)
{
}
};
struct V
{
template <typename ...Args>
V(Args &&... args)
{
wrapper v(args...);
}
};
V v;