This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/60658] [4.7/4.8/4.9 Regression] std::atomic<T*> is unexpectedly not lock-free


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60658

--- Comment #5 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Mar 25 20:40:17 2014
New Revision: 208821

URL: http://gcc.gnu.org/viewcvs?rev=208821&root=gcc&view=rev
Log:
    PR libstdc++/60658
    * include/bits/atomic_base.h (__atomic_base<_PTp*>::is_lock_free()):
    Use sizeof pointer type not the element type.
    * testsuite/29_atomics/atomic/60658.cc: New.

Added:
    branches/gcc-4_7-branch/libstdc++-v3/testsuite/29_atomics/atomic/60658.cc
Modified:
    branches/gcc-4_7-branch/libstdc++-v3/ChangeLog
    branches/gcc-4_7-branch/libstdc++-v3/include/bits/atomic_base.h


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]