This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Segfault in TMS470 compiler 4.9.1

We are using the final build of CCS 5.1 (09000) and noticed that the new compiler segfaults when compiling one of our source files.

We reduced it to the following example which will cause the segfault. I realize that this is not valid C code but the compiler should not segfault in any case.

I will attach  the reduced example as a CCS project archive.

 

static const short temperature_ls2[];

void main(void) {
temperature_ls2[0];
}

static const short temperature_ls2[] = { 1 };

TMS470SegfaultExample.zip