[LLVMbugs] [Bug 19851] New: regex does not correctly handle the regex "a*|b*"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun May 25 12:38:34 PDT 2014


            Bug ID: 19851
           Summary: regex does not correctly handle the regex "a*|b*"
           Product: libc++
           Version: 3.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: luka.mikec1 at gmail.com
                CC: llvmbugs at cs.uiuc.edu, mclow.lists at gmail.com
    Classification: Unclassified

This line:

cout << regex_match("bbb", regex("a*|b*")) << endl;

should print 1, but prints 0 instead (with <regex> from libc++). It's not
operator hierarchy issue because "a*|(b*)" doesn't work either.

libstdc++ gives the right output. 

My platform: Debian Jessie, libc++1 version 1.0~svn205159-1; clang version

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/20140525/88a034c4/attachment.html>

More information about the llvm-bugs mailing list