Anyway,I have been looking at some related tickets. This old FP no longer reproduces for me:
Can you reproduce with an old version.. but not with latest cppcheck? I'd like to know a version you can reproduce the problem with.. then I can close the ticket
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I see that https://trac.cppcheck.net/ticket/8703 has been closed.
Would it be useful to look at old tickets and check if they have been fixed in the meantime?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Cppcheck 2.3 does not like the Array class being instantiated with std::array. Other types are fine though.
Last edit: CHR 2020-12-18
bump
Also happy new year!
This reduced version:
has the same problem:
cough Ticket?
Anyway,I have been looking at some related tickets. This old FP no longer reproduces for me:
https://trac.cppcheck.net/ticket/8703
This FN still isn't detected:
https://trac.cppcheck.net/ticket/8174
Reduced code:
Can you reproduce with an old version.. but not with latest cppcheck? I'd like to know a version you can reproduce the problem with.. then I can close the ticket
Thanks! I have created ticket https://trac.cppcheck.net/ticket/10097
Thanks!
It seems the FP was fixed between 1.87 and 1.89:
1..88 reports
[CPPCheckFree.c:27]: (error) Memory leak: String
, 1.89 is clean.I see that https://trac.cppcheck.net/ticket/8703 has been closed.
Would it be useful to look at old tickets and check if they have been fixed in the meantime?
Yes! If anybody would do that it sounds very useful.