I'd like to report a bug. Not sure if it's duplicated, I have not found anything like that on tracker. Consider this piece of C++ code: #include <string> template <typename T> void foo(T& val) {} template <> void foo<std::string>(std::string& val) {} int main() { int val = 0; foo(val); return 0; } Cppcheck 2.9 would produce following results after its' analysis: $ cppcheck main.cpp Checking main.cpp ... main.cpp:11:9: error: Null pointer dereference [nullPointer] foo(val); ^ It does not raise an...
I'd like to report a bug. Not sure if it's duplicated, I have not found anything like that on tracker. Consider this piece of C++ code: #include <string> template <typename T> void foo(T& val) {} template <> void foo<std::string>(std::string& val) {} int main() { int val = 0; foo(val); return 0; } Cppcheck 2.9 would produce following results after its' analysis: $ cppcheck main.cpp Checking main.cpp ... main.cpp:11:9: error: Null pointer dereference [nullPointer] foo(val); ^ It does not raise an...
I'd like to report a bug. Not sure if it's duplicated, I have not found anything like that on tracker. Consider this piece of C++ code: #include <string> template <typename T> void foo(T& val) {} template <> void foo<std::string>(std::string& val) {} int main() { int val = 0; foo(val); return 0; } Cppcheck 2.9 would produce following results after its' analysis: $ cppcheck main.cpp Checking main.cpp ... main.cpp:11:9: error: Null pointer dereference [nullPointer] foo(val); ^ It does not raise an...