This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/60658] [4.7/4.8/4.9 Regression] std::atomic<T*> is unexpectedly not lock-free
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 25 Mar 2014 20:40:50 +0000
- Subject: [Bug libstdc++/60658] [4.7/4.8/4.9 Regression] std::atomic<T*> is unexpectedly not lock-free
- Auto-submitted: auto-generated
- References: <bug-60658-4 at http dot gcc dot gnu dot org/bugzilla/>
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