Template instantiation results in a link failure

Paolo Carlini paolo.carlini@oracle.com
Wed May 25 23:49:00 GMT 2011


On 05/26/2011 01:04 AM, Paolo Carlini wrote:
> On 05/26/2011 12:57 AM, Sam Varshavchik wrote:
>> #include <algorithm>
>> #include <iterator>
>> #include <iostream>
>>
>> int main()
>> {
>>     std::find(std::istreambuf_iterator<char>(std::cin),
>>           std::istreambuf_iterator<char>(), '\n');
>>     return 0;
>> }
> The symbols are in the .so but unexported. Likely my fault, sorry. 
> I'll fix that momentarily for 4.6.1.
Like this. Tested x86_64-linux -m32 and -m64.

Thanks,
Paolo.

PS: of course the problem was visible only at -O0, when no inlining 
takes place.

///////////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20110525/18f97751/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20110525/18f97751/attachment-0001.ksh>


More information about the Libstdc++ mailing list