[llvm-bugs] [Bug 25774] New: Analyzer misses mismatch between container and iterator
llvm-bugs at lists.llvm.org
Tue Dec 8 06:51:24 PST 2015
Bug ID: 25774
Summary: Analyzer misses mismatch between container and
Component: Static Analyzer
Assignee: kremenek at apple.com
Reporter: t at sharklasers.com
CC: llvm-bugs at lists.llvm.org
Created attachment 15415
Example demonstrating the bug
Two maps are created. Iterators from second map are used for insertions in the
$ scan-build g++ -std=c++1z wrong_iterator.cpp
scan-build: Using 'local/tmp/clang/bin/clang' for static analysis
scan-build: Removing directory '/tmp/scan-build-2015-12-08-154917-8614-1'
because it contains no reports.
scan-build: No bugs found.
Example taken from the talk "CppCon 2015: Herb Sutter "Writing Good C++14... By
Default" at 1:09:13 (a Microsoft static analysis tool was demonstrated that is
supposedly able to catch this bug)
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-bugs