This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/65147] alignment of std::atomic object is not correct
- 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, 23 Mar 2015 17:25:31 +0000
- Subject: [Bug libstdc++/65147] alignment of std::atomic object is not correct
- Auto-submitted: auto-generated
- References: <bug-65147-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65147
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think std::atomic<T> should increase the alignment of its T member. That will
have the advantage of being layout-compatible with _Atomic T.