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.

TMS320F280037C: static_assert error message

Part Number: TMS320F280037C


Tool/software:

Hi there,

I'm trying to use static_assert() in my code. When I add it and the assert expression is true, it works fine. When the expression is false, I get the error message:

error #95: the size of an array must be greater than zero

The code is

#include "assert.h"

void test(void)

{
  static_assert(1==2,"This is a test");

}

I am using CCS v12.8.0.00012 and compiler TI v22.6.1.LTS

Thanks

Andrew