Bug 42989

Summary: operator= for rvalue reference for wstring disappears in libstdc++.so.6.0.14
Product: gcc Reporter: John Plaice <plaice>
Component: libstdc++Assignee: Paolo Carlini <paolo.carlini>
Status: RESOLVED FIXED    
Severity: normal CC: gcc-bugs
Priority: P3    
Version: 4.5.0   
Target Milestone: 4.5.0   
Host: x86_64-unknown-linux-gnu Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu Known to work:
Known to fail: Last reconfirmed: 2010-02-06 21:21:59
Attachments: Loader complains of missing reference.

Description John Plaice 2010-02-06 21:05:44 UTC
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.
Comment 1 John Plaice 2010-02-06 21:07:41 UTC
Created attachment 19816 [details]
Loader complains of missing reference.
Comment 2 Paolo Carlini 2010-02-06 21:21:59 UTC
Oops, there is a typo in the linker script, fixing momentarily.
Comment 3 paolo@gcc.gnu.org 2010-02-06 21:31:05 UTC
Subject: Bug 42989

Author: paolo
Date: Sat Feb  6 21:30:52 2010
New Revision: 156556

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=156556
Log:
2010-02-06  Paolo Carlini  <paolo.carlini@oracle.com>

	PR libstdc++/42989
	* config/abi/pre/gnu.ver: Fix wstring move assignment operator typo.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/config/abi/pre/gnu.ver

Comment 4 Paolo Carlini 2010-02-06 21:32:05 UTC
Fixed.