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.

INTERNAL ERROR: ac2000.exe experienced a segmentation fault



Hi,

ac2000.exe (v6.2.0?) segfaults when I try to compile a simple C construct like:

const char myA = "A"[0];

The message then is:

INTERNAL ERROR: C:\ti\ccsv5\tools\compiler\c2000_6.2.0\bin\ac2000.exe experienced a segmentation fault while processing function (unknown or file scope) file ../xxx.c line yyy

I'm pretty sure that this is valid C (at least C99), and can be useful as a macro to convert "something" to char. Example program (compiles without warnings/errors with GCC on a PC) follows:

#include <stdio.h>
#include <stdlib.h>

#define TOCHAR(c)       #c[0]

int
main(void)
{

        printf("%c\n", TOCHAR(A));

        return EXIT_SUCCESS;
}