[llvm-bugs] [Bug 41891] New: after std::make_shared path-sensitive analysis stops
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed May 15 13:12:31 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41891
Bug ID: 41891
Summary: after std::make_shared path-sensitive analysis stops
Product: clang
Version: 7.0
Hardware: PC
OS: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: Static Analyzer
Assignee: dcoughlin at apple.com
Reporter: plavsic.ognjen95 at gmail.com
CC: dcoughlin at apple.com, llvm-bugs at lists.llvm.org
#include <memory>
int main()
{
auto b = std::make_shared<int>(new int(10));
1/0;
}
After std::make_shared line of code, Static Analyzer won't throw Div by zero
warning. It works fine when i use std::make_unique, so it's really confusing.
--
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/20190515/03137427/attachment.html>
More information about the llvm-bugs
mailing list