This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/45398] New: Missing atomic<_Tp*>::store definition
- From: "takenori dot sato at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Aug 2010 14:32:58 -0000
- Subject: [Bug c++/45398] New: Missing atomic<_Tp*>::store definition
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Hi,
I get "undefined reference to `std::atomic<Foo*>::store(Foo*,
std::memory_order) volatile'" error, and am wondering if the definition of
atomic<_Tp*>::store is missing.
My version is:
gcc version 4.4.0 20090514 (Red Hat 4.4.0-6) (GCC)
I see no definition in the header file, cstdatomic.
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
Thanks,
Takenori
--
Summary: Missing atomic<_Tp*>::store definition
Product: gcc
Version: 4.4.0
Status: UNCONFIRMED
Severity: critical
Priority: P3
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: takenori dot sato at gmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45398