public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/49445] New: Undefined reference to std::atomic<float> "operator float"
@ 2011-06-16 20:22 raskolnikov at gnu dot org
  2011-06-17  9:04 ` [Bug libstdc++/49445] " rguenth at gcc dot gnu.org
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: raskolnikov at gnu dot org @ 2011-06-16 20:22 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: Undefined reference to std::atomic<float> "operator
                    float"
           Product: gcc
           Version: 4.6.0
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: raskolnikov@gnu.org


Hello,

It looks like std::atomic<float> does is not fully implemented. I get an
undefined reference to its operator float:

libtool: link: g++ -Wall -I/usr/include -I../../src -I../../src -g -O2
-std=c++0x -DNDEBUG -o .libs/psynth_unit_test
psynth_unit_test-psynth_unit_test.o [... a big list of object files ...]
-L/usr/lib64 -lboost_unit_test_framework-mt -lboost_filesystem-mt
-lboost_signals-mt -lboost_system-mt ../psynth/.libs/libpsynth.so -Wl,-rpath
-Wl,/home/raskolnikov/usr/lib

../psynth/.libs/libpsynth.so: undefined reference to 
   `atomic<float>::operator float() const'

A similar bug happened when I tried std::atomic<my_enum> with "my_enum" being a
"enum class my_enum : int", I got an undefined reference to the "store ()"
method instead.

I am using GCC 4.6 as included in Debian Sid:

  g++ --version
  g++ (Debian 4.6.0-13) 4.6.1 20110611 (prerelease)

  apt-cache show libstdc++6-4.6-dev
  Package: libstdc++6-4.6-dev
  Source: gcc-4.6
  Version: 4.6.0-13

Anyways, thanks a lot for your hard work implementing C++11 :)

JP


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2012-07-09 14:14 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-06-16 20:22 [Bug libstdc++/49445] New: Undefined reference to std::atomic<float> "operator float" raskolnikov at gnu dot org
2011-06-17  9:04 ` [Bug libstdc++/49445] " rguenth at gcc dot gnu.org
2011-06-17  9:35 ` raskolnikov at gnu dot org
2011-06-17 11:43 ` marc.glisse at normalesup dot org
2011-06-17 12:08 ` marc.glisse at normalesup dot org
2011-06-17 14:41 ` raskolnikov at gnu dot org
2011-06-26  8:37 ` indi.in.the.wired at gmail dot com
2011-06-26 14:07 ` redi at gcc dot gnu.org
2012-02-03 20:20 ` [Bug libstdc++/49445] [C++0x] " bkoz at gcc dot gnu.org
2012-02-03 20:29 ` bkoz at gcc dot gnu.org
2012-02-03 21:11 ` bkoz at gcc dot gnu.org
2012-02-16 20:41 ` bkoz at gcc dot gnu.org
2012-07-09 14:14 ` redi at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).