[llvm-bugs] [Bug 33541] New: We getting analyzer error on regex_match usage

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Jun 21 01:30:43 PDT 2017


            Bug ID: 33541
           Summary: We getting analyzer error on regex_match usage
           Product: clang
           Version: 4.0
          Hardware: PC
                OS: MacOS X
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: amanasyan at noknok.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org

Created attachment 18681
  --> https://bugs.llvm.org/attachment.cgi?id=18681&action=edit
screenshot of the reported error.

In the code fragment bellow we getting following error:
 Called C++ object pointer is null (within a call to 'regex_match')

  std::regex reg("(.*)(/)");
    std::string facet = "test";
    if( !(std::regex_match(facet, reg) ) )
        facet  += path_sep;

I have also attached the screenshot for reported error.
We are using Xcode 8.3.2 Analyze

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/20170621/d7533899/attachment.html>

More information about the llvm-bugs mailing list