Here's a snippet to reproduce the issue, tested on cppcheck v2.6.3.
int x = (int []) { [0] = 0, }[0];
test.c:1:7: error: Syntax Error: AST broken, binary operator '=' doesn't have two operands. [internalAstError] int x = (int []) { [0] = 0, }[0]; ^
Thanks for reporting, this ticket seems to cover the problem: https://trac.cppcheck.net/ticket/10177
Log in to post a comment.
Here's a snippet to reproduce the issue, tested on cppcheck v2.6.3.
Thanks for reporting, this ticket seems to cover the problem: https://trac.cppcheck.net/ticket/10177