[llvm-bugs] [Bug 33681] New: Iterating using regex_iterator never	ends
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Mon Jul  3 11:15:18 PDT 2017
    
    
  
https://bugs.llvm.org/show_bug.cgi?id=33681
            Bug ID: 33681
           Summary: Iterating using regex_iterator never ends
           Product: libc++
           Version: 3.9
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: karen at codesynthesis.com
                CC: llvm-bugs at lists.llvm.org, mclow.lists at gmail.com
While using regex_iterator template in our build2 toolchain project we have
discovered that for some regular expressions the end iterator can never be
reached.
The issue can be reproduced with the following code:
std::string s ("foo");
std::regex re (".*");
using it = std::regex_iterator<std::string::const_iterator>;
for (it i (s.begin (), s.end (), re), e; i != e; ++i) ; // Hangs.
-- 
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/20170703/e3e36047/attachment.html>
    
    
More information about the llvm-bugs
mailing list