<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - std::stringstream generates vtable"
href="https://bugs.llvm.org/show_bug.cgi?id=46351">46351</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>std::stringstream generates vtable
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>All Bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>dave@znu.io
</td>
</tr>
<tr>
<th>CC</th>
<td>llvm-bugs@lists.llvm.org, mclow.lists@gmail.com
</td>
</tr></table>
<p>
<div>
<pre>The following code generates vtables whereas GNU C++ does not:
#include <sstream>
std::string example(void *pointer) {
std::stringstream result;
result << "example";
return result.str();
}
This is both surprising and unfortunate. Here are the exported symbols on my
Linux box:
0000000000000000 W __clang_call_terminate
U __cxa_begin_catch
U __cxa_end_catch
0000000000000000 r GCC_except_table0
000000000000001c r GCC_except_table13
0000000000000034 r GCC_except_table15
0000000000000078 r GCC_except_table16
U __gxx_personality_v0
U memset
U _Unwind_Resume
0000000000000000 T _Z7examplePv
U _ZdlPv
0000000000000000 W
_ZNKSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE3strEv
U
_ZNKSt3__121__basic_string_commonILb1EE20__throw_length_errorEv
U _ZNKSt3__16locale9use_facetERNS0_2idE
U _ZNKSt3__18ios_base6getlocEv
U
_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6resizeEmc
U
_ZNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc
U _ZNSt3__113basic_istreamIcNS_11char_traitsIcEEED0Ev
U _ZNSt3__113basic_istreamIcNS_11char_traitsIcEEED1Ev
U
_ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryC1ERS3_
U _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEE6sentryD1Ev
U _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEED0Ev
U _ZNSt3__113basic_ostreamIcNS_11char_traitsIcEEED1Ev
U _ZNSt3__114basic_iostreamIcNS_11char_traitsIcEEED0Ev
U _ZNSt3__114basic_iostreamIcNS_11char_traitsIcEEED1Ev
U _ZNSt3__114basic_iostreamIcNS_11char_traitsIcEEED2Ev
U _ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE4syncEv
U
_ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE5imbueERKNS_6localeE
U _ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE5uflowEv
U _ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE6setbufEPcl
U _ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE6xsgetnEPcl
U
_ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE6xsputnEPKcl
U
_ZNSt3__115basic_streambufIcNS_11char_traitsIcEEE9showmanycEv
U _ZNSt3__115basic_streambufIcNS_11char_traitsIcEEEC2Ev
U _ZNSt3__115basic_streambufIcNS_11char_traitsIcEEED2Ev
0000000000000000 W
_ZNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE7seekoffExNS_8ios_base7seekdirEj
0000000000000000 W
_ZNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE7seekposENS_4fposI11__mbstate_tEEj
0000000000000000 W
_ZNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE8overflowEi
0000000000000000 W
_ZNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE9pbackfailEi
0000000000000000 W
_ZNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEE9underflowEv
0000000000000000 W
_ZNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEED0Ev
0000000000000000 W
_ZNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev
0000000000000000 W
_ZNSt3__116__pad_and_outputIcNS_11char_traitsIcEEEENS_19ostreambuf_iteratorIT_T0_EES6_PKS4_S8_S8_RNS_8ios_baseES4_
0000000000000000 W
_ZNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEED0Ev
0000000000000000 W
_ZNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev
0000000000000000 W
_ZNSt3__124__put_character_sequenceIcNS_11char_traitsIcEEEERNS_13basic_ostreamIT_T0_EES7_PKS4_m
U _ZNSt3__15ctypeIcE2idE
U _ZNSt3__16localeD1Ev
U _ZNSt3__18ios_base33__set_badbit_and_consider_rethrowEv
U _ZNSt3__18ios_base4initEPv
U _ZNSt3__18ios_base5clearEj
U _ZNSt3__19basic_iosIcNS_11char_traitsIcEEED2Ev
U _Znwm
U _ZSt9terminatev
0000000000000000 V
_ZTCNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE0_NS_13basic_istreamIcS2_EE
0000000000000000 V
_ZTCNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE0_NS_14basic_iostreamIcS2_EE
0000000000000000 V
_ZTCNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE16_NS_13basic_ostreamIcS2_EE
U _ZThn16_NSt3__114basic_iostreamIcNS_11char_traitsIcEEED0Ev
U _ZThn16_NSt3__114basic_iostreamIcNS_11char_traitsIcEEED1Ev
0000000000000000 W
_ZThn16_NSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEED0Ev
0000000000000000 W
_ZThn16_NSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev
0000000000000000 V
_ZTTNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE
U _ZTv0_n24_NSt3__113basic_istreamIcNS_11char_traitsIcEEED0Ev
U _ZTv0_n24_NSt3__113basic_istreamIcNS_11char_traitsIcEEED1Ev
U _ZTv0_n24_NSt3__113basic_ostreamIcNS_11char_traitsIcEEED0Ev
U _ZTv0_n24_NSt3__113basic_ostreamIcNS_11char_traitsIcEEED1Ev
U _ZTv0_n24_NSt3__114basic_iostreamIcNS_11char_traitsIcEEED0Ev
U _ZTv0_n24_NSt3__114basic_iostreamIcNS_11char_traitsIcEEED1Ev
0000000000000000 W
_ZTv0_n24_NSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEED0Ev
0000000000000000 W
_ZTv0_n24_NSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEED1Ev
0000000000000000 V
_ZTVNSt3__115basic_stringbufIcNS_11char_traitsIcEENS_9allocatorIcEEEE
0000000000000000 V
_ZTVNSt3__118basic_stringstreamIcNS_11char_traitsIcEENS_9allocatorIcEEEE</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>