Running cppcheck 2.10 on the following code produces "Internal Error. MathLib::toLongNumber: input was not completely consumed: 2_Tesla [cppcheckError]"
#include <iostream> constexpr double operator"" _Tesla ( unsigned long long b ){ return b*10000.; } int main(){ const double f=2_Tesla; std::cout<<f<<std::endl; return 0; }
Environment is centos7; we habitually use gcc 11.2 compiler with c++ 17 std.
Thanks for reporting, please see this PR: https://github.com/danmar/cppcheck/pull/4701
Log in to post a comment.
Running cppcheck 2.10 on the following code produces
"Internal Error. MathLib::toLongNumber: input was not completely consumed: 2_Tesla [cppcheckError]"
Environment is centos7; we habitually use gcc 11.2 compiler with c++ 17 std.
Thanks for reporting, please see this PR: https://github.com/danmar/cppcheck/pull/4701