I can not reproduce it with the latest sources. I tried the normal 64 bit build and even a 32 bit build, but it processes it without problems.
I have attached the file i used for testing.
Can you check if it crashes with it on your system?
Do you use a 64 bit Windows 7?
Sorry for my mistake, you should change the last line in your cpp-file to the following (float instead of arr[0]):
size_t arrsize = sizeof(arr)/sizeof(float);
I use Windows 7, 64bit, Cppcheck 1.87 (the last version which doesn't crash is 1.84).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for your report, i will create a ticket for this issue.
I attach the file with which i can reproduce the issue and that is processed by gcc without warnings but still crashes Cppcheck.
code example (tested on Windows7):
static float arr[] = {0, .../ 70 000 times /, 0};
sizeof(arr)/sizeof(arr[0]);
I can not reproduce it with the latest sources. I tried the normal 64 bit build and even a 32 bit build, but it processes it without problems.
I have attached the file i used for testing.
Can you check if it crashes with it on your system?
Do you use a 64 bit Windows 7?
Sorry for my mistake, you should change the last line in your cpp-file to the following (float instead of arr[0]):
size_t arrsize = sizeof(arr)/sizeof(float);
I use Windows 7, 64bit, Cppcheck 1.87 (the last version which doesn't crash is 1.84).
Ah ok, then i can also reproduce it.
gdb output:
Thanks for your report, i will create a ticket for this issue.
I attach the file with which i can reproduce the issue and that is processed by gcc without warnings but still crashes Cppcheck.
I created ticket https://trac.cppcheck.net/ticket/8981