[patch] libstdc++/65630 add exports for operator+() with std::__cxx11::basic_string
Jonathan Wakely
jwakely@redhat.com
Mon Mar 30 18:17:00 GMT 2015
On 30/03/15 18:59 +0100, Jonathan Wakely wrote:
>In the library we instantiate these functions:
>
> template S operator+(const C*, const S&);
> template S operator+(C, const S&);
> template S operator+(const S&, const S&);
Hmm, that's a bit cryptic, sorry :-)
It would have been useful to explain that we then compile that chunk
four times with the following definitions:
#define C char
#define S std::basic_string<C>
#define C wchar_t
#define S std::basic_string<C>
#define C char
#define S std::__cxx11::basic_string<C>
#define C wchar_t
#define S std::__cxx11::basic_string<C>
The problem was that the instantiations generated by the third and
fourth cases were not exported from the shared library.
I've attached the patch I'm planning for stage 1.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 1573 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150330/722af789/attachment.bin>
More information about the Libstdc++
mailing list