Hi, I found an inconsistent behavior in the autoVariables checker.
The following two cases are semantically equivalent. However, cppcheck correctly flags the first program with an autoVariables warning, while missing the issue in the second program. Therefore, I believe this is a false negative bug.
Hi, I found an inconsistent behavior in the autoVariables checker.
The following two cases are semantically equivalent. However, cppcheck correctly flags the first program with an autoVariables warning, while missing the issue in the second program. Therefore, I believe this is a false negative bug.
Version: 2.19.0
Please check with current head, I'm getting a warning for both examples.
Thank you! I verified it with a newer version and Cppcheck caught the warning. It's indeed an old bug.