[Bug libstdc++/65913] Linking failure without -latomic

2015-04-28 Thread yan12125 at gmail dot com
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?

[Bug libstdc++/65913] New: Linking failure without -latomic

2015-04-28 Thread yan12125 at gmail dot com
++ 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

[Bug c++/65882] Internal compiler error: Error reporting routines re-entered

2015-04-25 Thread yan12125 at gmail dot com
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

[Bug c++/65882] New: Internal compiler error: Error reporting routines re-entered

2015-04-25 Thread yan12125 at gmail dot com
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