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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs