> --- Comment #4 from Jonathan Wakely ---
> 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 foo(0);
Regards,
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64658
Jonathan Wakely changed:
What|Removed |Added
Status|NEW |RESOLVED
Resolution|---
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64658
--- Comment #3 from Jonathan Wakely ---
Author: redi
Date: Tue Jan 20 11:50:43 2015
New Revision: 219886
URL: https://gcc.gnu.org/viewcvs?rev=219886&root=gcc&view=rev
Log:
PR libstdc++/64658
* include/std/atomic (atomic_init): Define.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64658
--- Comment #2 from Jonathan Wakely ---
Testcase for 4.9 (which doesn't have the fix for PR64940 that allows
std::atomic_int t o be used interchangeably with std::atomic):
#include
int main()
{
std::atomic a;
atomic_init(&a, 0);
}
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64658
Jonathan Wakely changed:
What|Removed |Added
Status|UNCONFIRMED |NEW
Last reconfirmed|