https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65913
--- Comment #3 from yan12125 at gmail dot com ---
Sorry, but I don't quite understand. Does that mean for all the future versions
(5.2, 6.0, etc.) -latomic flag is necessary if atomic::is_lock_free() is
used in my program?
++
Assignee: unassigned at gcc dot gnu.org
Reporter: yan12125 at gmail dot com
Target Milestone: ---
#include
#include
struct Simple1 { int i; };
int main()
{
std::atomic s1;
std::cout << std::boolalpha << s1.is_lock_free() << '\n';
re
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65882
--- Comment #2 from yan12125 at gmail dot com ---
Sorry, I don't know why the attachment is lost. I re-attach the file here:
https://gist.githubusercontent.com/yan12125/b5498cb6ac2be4a5649a/raw/json.ii
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: yan12125 at gmail dot com
I invoke the following command:
g++ -nostdlib -Wbool-compare -Wno-unused -Wno-deprecated-declarations -s
-std=c++11 json.ii
json.ii is the attached file. It's