[llvm-bugs] [Bug 31343] New: std::list::iterator should diagnose comparing singular and non-singular iterators

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Dec 10 18:11:02 PST 2016


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

            Bug ID: 31343
           Summary: std::list::iterator should diagnose comparing singular
                    and non-singular iterators
           Product: libc++
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eric at efcs.ca
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
    Classification: Unclassified

Example:

using L = std::list<int>;
using I = L::iterator;
L c = {1, 2, 3};
assert(c.begin() != L::iterator{}); // Undefined. Should diagnose.

-- 
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/20161211/fd9601ac/attachment.html>


More information about the llvm-bugs mailing list