Hello Cppcheck (version 2.3) have been serving me really well, but yesterday I came across to an internalAstError. The following C code assigns to a the fifth element on an array initialized using a compound literal and designators to initialize its elements. int main(void) { int a = (int[]){[4] = 1}[4]; return (a); } Although it compiles and runs fine using GCC, Clang and TCC without warnings (-Wpedantic -Wall -Wextra), running the bellow gives the following output: $ cppcheck --debug assignment-of-designated-initialized-compound-literal.c...
Hello Cppcheck (version 3.2) have been serving me really well, but yesterday I came across to an internalAstError. The following C code assigns to a the fifth element on an array initialized using a compound literal and designators to initialize its elements. int main(void) { int a = (int[]){[4] = 1}[4]; return (a); } Although it compiles and runs fine using GCC, Clang and TCC without warnings (-Wpedantic -Wall -Wextra), running the bellow gives the following output: $ cppcheck --debug assignment-of-designated-initialized-compound-literal.c...