I also get segfaults. In my case it's due to dereferencing the variable valueType when it is null.
Not exactly sure why it's null though... Your link looks to have basically the same issue in a different place. I posted about it here: https://sourceforge.net/p/cppcheck/discussion/general/thread/702232fdaf/
Last edit: David Ledger 2020-11-19
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
cppcheck head currently produces new segfaults, for example in the two files attached.
I'm almost sure it's due to the latest commit: https://github.com/danmar/cppcheck/commit/e4a54a24db889f8cf35965a318a743502f90899e
Could you please check?
Best regards,
Martin
I also get segfaults. In my case it's due to dereferencing the variable valueType when it is null.
Not exactly sure why it's null though... Your link looks to have basically the same issue in a different place. I posted about it here:
https://sourceforge.net/p/cppcheck/discussion/general/thread/702232fdaf/
Last edit: David Ledger 2020-11-19
Sorry for late response .. does it work as it should not Martin? I don't get a crash now when I analyze ex1.cpp and ex2.cpp.