Hi. Just updated to 2.10 and found following false positive:
In the following code line
foo(std::move(hhh)).then( { return !f; });
would be reported as "CWE: 672 Access of moved variable 'hhh'."
Version used: 2.10
Version last ok (not sure): 2.8
Interesting note:
if change
"foo(std::move(hhh)).then( { return !f; }); return 0;" to just "return foo(std::move(hhh)).then( { return !f; });" no errors reported.
Hi. Just updated to 2.10 and found following false positive:
In the following code line
foo(std::move(hhh)).then( { return !f; });
would be reported as "CWE: 672 Access of moved variable 'hhh'."
Version used: 2.10
Version last ok (not sure): 2.8
Interesting note:
if change
"foo(std::move(hhh)).then( { return !f; }); return 0;" to just "return foo(std::move(hhh)).then( { return !f; });" no errors reported.
Best,
Andrei.
Thanks for reporting, ticket is here: https://trac.cppcheck.net/ticket/11751