This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: [Bug libstdc++/64658] std::atomic_init() undefined
- From: Jon Chesterfield <jonathanchesterfield at gmail dot com>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 27 Jan 2015 20:45:37 +0000 (UTC)
- Subject: Re: [Bug libstdc++/64658] std::atomic_init() undefined
- Authentication-results: sourceware.org; auth=none
- References: <bug-64658-4 at http dot gcc dot gnu dot org/bugzilla/> <bug-64658-4-McJlzzRYUP at http dot gcc dot gnu dot org/bugzilla/>
> --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
> fixed - probably not worth backporting since noone has noticed it's missing
For what it's worth, at least one of your users (me) has noticed this.
I'll restructure code as necessary to use the constructor instead, i.e.
std::atomic<std::size_t> foo(0);
Regards,
Jon