User Activity

  • Posted a comment on discussion Development on cppcheck

    Thanks for your answer. Then it must be just after the last release. Compiling from main fixes the problem for me.

  • Posted a comment on discussion Development on cppcheck

    Hi, when analyzing the following C11 code, cppcheck crashes with a segmentation fault: void func_a(int *a) { } void func_b(float *b) { } #define foo(i) _Generic((i), \ int*:func_a, \ float*:func_b \ )(i) int main(int argc, char argv[]) { int bar; if (0 != argc) { foo(&bar); } return 0; } $ gcc main.c $ ./a.out $ cppcheck --version Cppcheck 2.12.1 $ cppcheck main.c Checking main.c ... Segmentation fault (core dumped) The bug seems to be related to the C11 generic function in combination with the condition....

View All

Personal Data

Username:
peckto
Joined:
2023-12-07 11:53:02.814000

Projects

  • No projects to display.

Personal Tools