PR libstdc++/63322
* include/std/atomic (atomic): Add assertion for trivially copyable.
* testsuite/29_atomics/atomic/60695.cc: Adjust line number.
From-SVN: r216046
* doc/xml/manual/status_cxx2011.xml: Update.
* doc/html/manual/status.html: Regenerate.
+ PR libstdc++/63322
+ * include/std/atomic (atomic): Add assertion for trivially copyable.
+ * testsuite/29_atomics/atomic/60695.cc: Adjust line number.
+
2014-10-09 Ville Voutilainen <ville.voutilainen@gmail.com>
PR libstdc++/60132
private:
_Tp _M_i;
- // TODO: static_assert(is_trivially_copyable<_Tp>::value, "");
+ static_assert(__is_trivially_copyable(_Tp),
+ "std::atomic requires a trivially copyable type");
static_assert(sizeof(_Tp) > 0,
"Incomplete or zero-sized types are not supported");
char stuff[0]; // GNU extension, type has zero size
};
-std::atomic<X> a; // { dg-error "not supported" "" { target *-*-* } 168 }
+std::atomic<X> a; // { dg-error "not supported" "" { target *-*-* } 169 }