I see. Thank you for the explanation!
Thank you for the answer -- I understand the difference between the two versions now. Given that the difference is a bug fix, shouldn't the official release version be updated to 2.12.1 (including the download links on the website)?
Thank you for your work on Cppcheck! I am having trouble figuring out what the latest version is, though. I see references to version 2.12.1 in the forum, but, confusingly the cppcheck website lists 2.12 as the latest version with download links pointing to files with 2.12.0 in their names. What is the latest official release version? Is it still 2.12.0 linked from the website? How is 2.12.1 is different from 2.12.0?
Cppcheck 2.10 reports a false positive when run on a C++ file with the following code. Please see comments in the code for details. #include <vector> #include <cstdio> template<typename T> int g() { return 0; } int f(int t) { std::vector<int> v(1); // the auto type deduction on the following line seems to be the cause of // the false positive, because if either // - the type of itr is specified explicitly as std::vector<int>::iterator, or // - g<int>() is replaced with an equivalent non-templated...