F
Francois Grieu
Hi,
the embedded C compiler that I (have to) use won't compile
enum { f = +1 };
giving an error message on the tune of "invalid constant
expression", although it is fine with either of
enum { f = 1 };
enum { f = -1 };
It similarly refuses
int g[ +1 ];
but accepts (including in a global context)
int h = +1;
Has there EVER been a C definition where unary + is not
allowed in constant expressions ?
Or a common parser with this odd characteristic ?
TIA,
François Grieu
the embedded C compiler that I (have to) use won't compile
enum { f = +1 };
giving an error message on the tune of "invalid constant
expression", although it is fine with either of
enum { f = 1 };
enum { f = -1 };
It similarly refuses
int g[ +1 ];
but accepts (including in a global context)
int h = +1;
Has there EVER been a C definition where unary + is not
allowed in constant expressions ?
Or a common parser with this odd characteristic ?
TIA,
François Grieu