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++/49445] Undefined reference to std::atomic<float> "operator float"


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

--- Comment #2 from Juan Pedro BolÃvar Puente <raskolnikov at gnu dot org> 2011-06-17 09:35:29 UTC ---
Created attachment 24553
  --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=24553
Test case for the "undefined reference" on atom<float> bug

raskolnikov@nexus9:~$ make CXXFLAGS=-std=c++0x test_atom
g++ -std=c++0x    test_atom.cpp   -o test_atom
/tmp/ccS68VP3.o: In function `main':
test_atom.cpp:(.text+0x18): undefined reference to
`std::atomic<float>::operator float() const'
collect2: ld returned 1 exit status
make: *** [test_atom] Error 1


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