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

            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: unassignedclangb...@nondot.org
          Reporter: amanas...@noknok.com
                CC: dgre...@apple.com, llvm-bugs@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')


Code:
  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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to