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 c++/45398] New: Missing atomic<_Tp*>::store definition


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


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