#0 0x0000000000762b51 in CheckClass::constructors (this=0x7ffd650b44e0) at lib/checkclass.cpp:173#1 0x0000000000774fd2 in CheckClass::runChecks (this=0xdc9040 <_ZN12_GLOBAL__N_18instanceE>, tokenizer=0x7ffd650b4ff0, settings=0x7ffd650b60e8, errorLogger=0x7ffd650b5ed0) at lib/checkclass.h:65#2 0x0000000000857e03 in CppCheck::checkNormalTokens (this=0x7ffd650b5ed0, tokenizer=...) at lib/cppcheck.cpp:949#3 0x000000000085509f in CppCheck::checkFile (this=0x7ffd650b5ed0, filename="test.cpp", cfgname="", fileStream=...) at lib/cppcheck.cpp:751#4 0x00000000008518af in CppCheck::check (this=0x7ffd650b5ed0, path="test.cpp") at lib/cppcheck.cpp:391#5 0x0000000000a5626d in CppCheckExecutor::check_internal (this=0x7ffd650b6bc0, cppcheck=..., argv=0x7ffd650b6f58) at cli/cppcheckexecutor.cpp:921#6 0x0000000000a5486e in CppCheckExecutor::check (this=0x7ffd650b6bc0, argc=3, argv=0x7ffd650b6f58) at cli/cppcheckexecutor.cpp:232#7 0x0000000000a5a523 in main (argc=3, argv=0x7ffd650b6f58) at cli/main.cpp:95
cppcheck 2.3 crashes in CheckClass::constructors on such code:
Backtrace:
Valgrind:
cmd:
Should be fixed by this PR: https://github.com/danmar/cppcheck/pull/3129