------- Comment #1 from redi at gcc dot gnu dot org 2010-08-24 15:36 ------- (In reply to comment #0) > Also, compare_swap is not declared. Instead, compare_exchange_weak(strong) > exist. It is not a bug, but is not consistent with the document. > http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2007/n2427.html
n2427 is ancient, the implementation in libstdc++ is based on a working draft of the standard (maybe n3000, I don't recall exactly which one) not an early proposal -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45398