Current support for constant expressions is very limited. For example,
floor((3*n)/2) does not parse as an integer constant expression, because
function calls and division are not supported for integer constant expressions.
Instead of trying to ensure these expressions are of integer type, constant
inits should just be parsed as standard expressions and then type checked at
evaluation.
Original issue reported on code.google.com by hlsyou...@gmail.com on 29 Nov 2014 at 3:41
Original issue reported on code.google.com by
hlsyou...@gmail.com
on 29 Nov 2014 at 3:41