public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/42989]  New: operator= for rvalue reference for wstring disappears in libstdc++.so.6.0.14
@ 2010-02-06 21:05 plaice at cse dot unsw dot edu dot au
  2010-02-06 21:07 ` [Bug c++/42989] " plaice at cse dot unsw dot edu dot au
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: plaice at cse dot unsw dot edu dot au @ 2010-02-06 21:05 UTC (permalink / raw)
  To: gcc-bugs

When running "g++ -std=c++0x" on the following two lines,

  std::wstring s;
  s = std::wstring(L"hello world");

the loader complains that there is an
undefined reference to `std::basic_string<wchar_t, std::char_traits<wchar_t>,
std::allocator<wchar_t> >::operator=(std::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >&&)'

However, if the file x86_64-unknown-linux-gnu/libstdc++-v3/src/wstring-inst.o
in the gcc 4.5.0 build directory is added to the loader line, then there is
no problem.


-- 
           Summary: operator= for rvalue reference for wstring disappears in
                    libstdc++.so.6.0.14
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: plaice at cse dot unsw dot edu dot au
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

end of thread, other threads:[~2010-02-06 21:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-06 21:05 [Bug c++/42989] New: operator= for rvalue reference for wstring disappears in libstdc++.so.6.0.14 plaice at cse dot unsw dot edu dot au
2010-02-06 21:07 ` [Bug c++/42989] " plaice at cse dot unsw dot edu dot au
2010-02-06 21:22 ` [Bug libstdc++/42989] " paolo dot carlini at oracle dot com
2010-02-06 21:31 ` paolo at gcc dot gnu dot org
2010-02-06 21:32 ` paolo dot carlini at oracle dot com

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).