This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/69301] std::atomic<T>::load() won't compile if T doesn't have a default 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: Fri, 15 Jan 2016 18:49:37 +0000
- Subject: [Bug libstdc++/69301] std::atomic<T>::load() won't compile if T doesn't have a default constructor
- Auto-submitted: auto-generated
- References: <bug-69301-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69301
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |rejects-valid
Status|UNCONFIRMED |NEW
Last reconfirmed| |2016-01-15
Ever confirmed|0 |1
--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Ugh, I guess we need to replace the local variable with a buffer of sizeof(_Tp)
and alignas(_Tp).