<html>
<head>
<base href="http://llvm.org/bugs/" />
</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 --- - locale: __pad_and_output accessing private member __sbuf_ of istreambuf_iterator"
href="http://llvm.org/bugs/show_bug.cgi?id=18664">18664</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>locale: __pad_and_output accessing private member __sbuf_ of istreambuf_iterator
</td>
</tr>
<tr>
<th>Product</th>
<td>libc++
</td>
</tr>
<tr>
<th>Version</th>
<td>3.4
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>MacOS X
</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>hhinnant@apple.com
</td>
</tr>
<tr>
<th>Reporter</th>
<td>fang@csl.cornell.edu
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>On a i686-apple-darwin10 build of libc++ release-3.4 (using system-libsupc++),
compiling with stage-1 clang++, I get the following build error:
In file included from
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/src/locale.cpp:19:
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1480:13:
error: '__sbuf_' is a private member of 'std::__1::ostreambuf_iterator<char,
std::__1::char_traits<char> >'
if (__s.__sbuf_ == nullptr)
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1568:12:
note: in instantiation of function template specialization
'std::__1::__pad_and_output<char, std::__1::char_traits<char> >' requested here
return __pad_and_output(__s, __o, __op, __oe, __iob, __fl);
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/iterator:886:21:
note: declared private here
streambuf_type* __sbuf_;
^
In file included from
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/src/locale.cpp:19:
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1491:17:
error: '__sbuf_' is a private member of 'std::__1::ostreambuf_iterator<char,
std::__1::char_traits<char> >'
if (__s.__sbuf_->sputn(__ob, __np) != __np)
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/iterator:886:21:
note: declared private here
streambuf_type* __sbuf_;
^
In file included from
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/src/locale.cpp:19:
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1493:17:
error: '__sbuf_' is a private member of 'std::__1::ostreambuf_iterator<char,
std::__1::char_traits<char> >'
__s.__sbuf_ = nullptr;
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/iterator:886:21:
note: declared private here
streambuf_type* __sbuf_;
^
In file included from
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/src/locale.cpp:19:
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1500:17:
error: '__sbuf_' is a private member of 'std::__1::ostreambuf_iterator<char,
std::__1::char_traits<char> >'
if (__s.__sbuf_->sputn(__sp.data(), __ns) != __ns)
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/iterator:886:21:
note: declared private here
streambuf_type* __sbuf_;
^
In file included from
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/src/locale.cpp:19:
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1502:17:
error: '__sbuf_' is a private member of 'std::__1::ostreambuf_iterator<char,
std::__1::char_traits<char> >'
__s.__sbuf_ = nullptr;
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/iterator:886:21:
note: declared private here
streambuf_type* __sbuf_;
^
In file included from
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/src/locale.cpp:19:
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1509:17:
error: '__sbuf_' is a private member of 'std::__1::ostreambuf_iterator<char,
std::__1::char_traits<char> >'
if (__s.__sbuf_->sputn(__op, __np) != __np)
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/iterator:886:21:
note: declared private here
streambuf_type* __sbuf_;
^
In file included from
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/src/locale.cpp:19:
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1511:17:
error: '__sbuf_' is a private member of 'std::__1::ostreambuf_iterator<char,
std::__1::char_traits<char> >'
__s.__sbuf_ = nullptr;
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/iterator:886:21:
note: declared private here
streambuf_type* __sbuf_;
^
In file included from
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/src/locale.cpp:19:
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1480:13:
error: '__sbuf_' is a private member of 'std::__1::ostreambuf_iterator<wchar_t,
std::__1::char_traits<wchar_t> >'
if (__s.__sbuf_ == nullptr)
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1568:12:
note: in instantiation of function template specialization
'std::__1::__pad_and_output<wchar_t, std::__1::char_traits<wchar_t> >'
requested here
return __pad_and_output(__s, __o, __op, __oe, __iob, __fl);
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/iterator:886:21:
note: declared private here
streambuf_type* __sbuf_;
^
In file included from
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/src/locale.cpp:19:
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1491:17:
error: '__sbuf_' is a private member of 'std::__1::ostreambuf_iterator<wchar_t,
std::__1::char_traits<wchar_t> >'
if (__s.__sbuf_->sputn(__ob, __np) != __np)
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/iterator:886:21:
note: declared private here
[ 60%] streambuf_type* __sbuf_;
^
In file included from
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/src/locale.cpp:19:
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1493:17:
error: '__sbuf_' is a private member of 'std::__1::ostreambuf_iterator<wchar_t,
std::__1::char_traits<wchar_t> >'
__s.__sbuf_ = nullptr;
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/iterator:886:21:
note: declared private here
streambuf_type* __sbuf_;
^
In file included from
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/src/locale.cpp:19:
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1500:17:
error: '__sbuf_' is a private member of 'std::__1::ostreambuf_iterator<wchar_t,
std::__1::char_traits<wchar_t> >'
if (__s.__sbuf_->sputn(__sp.data(), __ns) != __ns)
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/iterator:886:21:
note: declared private here
streambuf_type* __sbuf_;
^
In file included from
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/src/locale.cpp:19:
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1502:17:
error: '__sbuf_' is a private member of 'std::__1::ostreambuf_iterator<wchar_t,
std::__1::char_traits<wchar_t> >'
__s.__sbuf_ = nullptr;
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/iterator:886:21:
note: declared private here
streambuf_type* __sbuf_;
^
In file included from
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/src/locale.cpp:19:
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1509:17:
error: '__sbuf_' is a private member of 'std::__1::ostreambuf_iterator<wchar_t,
std::__1::char_traits<wchar_t> >'
if (__s.__sbuf_->sputn(__op, __np) != __np)
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/iterator:886:21:
note: declared private here
streambuf_type* __sbuf_;
^
In file included from
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/src/locale.cpp:19:
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/locale:1511:17:
error: '__sbuf_' is a private member of 'std::__1::ostreambuf_iterator<wchar_t,
std::__1::char_traits<wchar_t> >'
__s.__sbuf_ = nullptr;
^
/Volumes/MacSpare/sw/src/fink.build/llvm34-3.4-0e/libcxx-3.4/include/iterator:886:21:
note: declared private here
streambuf_type* __sbuf_;
^
14 errors generated.
make[2]: *** [lib/CMakeFiles/cxx.dir/__/src/locale.cpp.o] Error 1</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>