[LLVMbugs] [Bug 18664] New: locale: __pad_and_output accessing private member __sbuf_ of istreambuf_iterator

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 29 17:00:17 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=18664

            Bug ID: 18664
           Summary: locale: __pad_and_output accessing private member
                    __sbuf_ of istreambuf_iterator
           Product: libc++
           Version: 3.4
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: hhinnant at apple.com
          Reporter: fang at csl.cornell.edu
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140130/c2b26486/attachment.html>


More information about the llvm-bugs mailing list