[llvm-bugs] [Bug 37245] New: [libcxx] [test] ostreambuf.iter.ops\failed.pass.cpp asserts about UB

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Apr 25 16:34:41 PDT 2018


https://bugs.llvm.org/show_bug.cgi?id=37245

            Bug ID: 37245
           Summary: [libcxx] [test] ostreambuf.iter.ops\failed.pass.cpp
                    asserts about UB
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: billy.oneal at gmail.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com

This test has the following assertion:

        std::ostreambuf_iterator<char> i(nullptr);
        assert(i.failed());

N4727 [ostreambuf.iter.cons]/3 says:

ostreambuf_iterator(streambuf_type* s) noexcept;

Requires: s shall not be a null pointer.

It seems this test is incorrect. I'm not sure if it should be outright deleted,
moved to the libcxx subdirectory, or something else.

-- 
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/20180425/e02b8e3f/attachment.html>


More information about the llvm-bugs mailing list