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.

Compiler/C2000-CGT: Compiler Error(pending bug report)

Genius 12760 points
Part Number: C2000-CGT


Tool/software: TI C/C++ Compiler

This issue Local C++ structure allocated statically depending on initializer list is still pending.

This bug report ClearQuest #SDSCM00050131 is pending too

____________

typedef struct

{
  int unused1;
  int count;

} TEST_STRUCT;

void TestStructure1(int count)

{
  TEST_STRUCT s = {42, count};
}


The compiler generates for "s" a static variable but should be on the stack. As my customer is calling this function two times from different tasks the code doesn't work as expected

Is there any plan to solve this issue?

Regards,
Bernd