A colleague sees a strange warning by the clang static analyzer (actually from the clang-check).
This code:
#include <regex> int main() { std::regex_match("jee", std::regex("lol")); return 0; }
issues an analyzer warning:
/usr/local/clang+llvm-3.9.0-x86_64-apple-darwin/bin/../include / C ++ / v1 / regex: 5724: 17: warning: The specified C ++ object pointer has null s value .__ node _-> __ exec_split (true, s); ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 a warning is generated.
What's going on here?
source share