Bug 42989 - operator= for rvalue reference for wstring disappears in libstdc++.so.6.0.14
Summary: operator= for rvalue reference for wstring disappears in libstdc++.so.6.0.14
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: libstdc++ (show other bugs)
Version: 4.5.0
: P3 normal
Target Milestone: 4.5.0
Assignee: Paolo Carlini
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-06 21:05 UTC by John Plaice
Modified: 2010-02-06 21:32 UTC (History)
1 user (show)

See Also:
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. (48.86 KB, text/plain)
2010-02-06 21:07 UTC, John Plaice
Details

Note You need to log in before you can comment on or make changes to this bug.
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.