It looks like I've run into code that Cppcheck is not able to compile. The original code can be found here. I prepared a stripped code snippet:
#include<stdint.h>extern"C++"template<typenameT,typename...TConstructorArgs>T*test(intn,TConstructorArgs...TconstructorArgs){/* Index out of bounds */intarr[10];for(inti=0;i<11;i++){arr[i]=0;}returnnullptr;}
The latest Cppcheck reports the following error message:
Hello!
It looks like I've run into code that Cppcheck is not able to compile. The original code can be found here. I prepared a stripped code snippet:
The latest Cppcheck reports the following error message:
Cppcheck command
Thanks in advance!
Last edit: valeros 2020-04-21
Thanks! I created this ticket:
https://trac.cppcheck.net/ticket/9685