Hi, I want to report a potential bug in cppcheck. When running cppcheck on the minimal code at the end of this post the following error is shown:
cppcheckfail.cpp:10:22: error: SymbolDatabase bailout; unhandled code [syntaxError] some_function({B::a});
and then cppcheck quits. As far I can tell the code is valid c++. Both the "struct" keyword in the alias and the curly braces in the function call are required for cppcheck to fail.
Minimal code example to reproduce:
struct A { int a = 1; }; using B = struct A; void test() { some_function({B::a}); }
Hello Joost and thank you for the report. You can find new issue here.
Log in to post a comment.
Hi, I want to report a potential bug in cppcheck. When running cppcheck on the minimal code at the end of this post the following error is shown:
and then cppcheck quits. As far I can tell the code is valid c++. Both the "struct" keyword in the alias and the curly braces in the function call are required for cppcheck to fail.
Minimal code example to reproduce:
Last edit: Joost W 2024-11-09
Hello Joost and thank you for the report. You can find new issue here.