Tool/software: TI C/C++ Compiler
Hi,
using the ti-cgt-c2000_15.12.1.LTS we are seeing the following behavior for the code
#include <stdbool.h>
enum {
test_variable = 1/(sizeof(uint16_t)==1)
};
It will fail with "enumerator value is not an integer constant". However this code should compile. In comparison the following code compiles fine:
#include <stdbool.h>
enum {
test_variable = 1/(true)
};
Is there a newer C2000 CGT that fixes this issue?
Thanks,
--Gunter