[Bug libstdc++/60658] [4.7/4.8/4.9 Regression] std::atomic<T*> is unexpectedly not lock-free
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Mar 25 20:14:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60658
--- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Tue Mar 25 20:13:46 2014
New Revision: 208820
URL: http://gcc.gnu.org/viewcvs?rev=208820&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.
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_8-branch/libstdc++-v3/testsuite/29_atomics/atomic/60658.cc
Modified:
branches/gcc-4_8-branch/libstdc++-v3/ChangeLog
branches/gcc-4_8-branch/libstdc++-v3/include/bits/atomic_base.h
More information about the Gcc-bugs
mailing list