Question
STM32CubeIDE - bug in compiler
Hi all,
You have one small bug in your compiler.
When I create macro like that:
#define CONV_STR2DEC(str, i) (str[i]>'0'?str[i]-'0':0)
const uint32_t version = CONV_STR2DEC(__TIME__, 6);
IDE return info that "initializer element is not constant" what is not true.
Your version of gcc thinks this is an expression, but I think they should try to interpret it first.
When I use GCC from Linearo, this problem not exist.
Best regards
Adrian