User Activity

  • Modified a comment on discussion Development on cppcheck

    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...

  • Posted a comment on discussion Development on cppcheck

    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...

View All

Personal Data

Username:
lettuce1
Joined:
2020-12-28 14:46:08

Projects

  • No projects to display.

Personal Tools