On Mon, Feb 01, 2016 at 03:35:27AM +0100, Nicolai Stange wrote: > Arithmetic constant expressions may be either of (6.6(8)): > - integer constant expressions > - floating point constants > or any arithmetic expression build up from them. > Furthermore, casts with arithmetic destination types preserve arithmetic > constness. > > Arithmetic constant expressions may be used as initializers for objects of > static storage duration. > > Introduce a new constexpr_flag CONSTEXPR_FLAG_ARITH_CONST_EXPR. > > Modify CONSTEXPR_FLAG_INT_CONST_EXPR_SET_MASK and > CONSTEXPR_FLAG_FP_CONST_SET_MASK to also include that new bit. > Thus, whenever an integer constant expression or a floating point constant > is recognized, it is automatically tagged as an arithmetic constant > expression. > > Note that everything has already been set up such that the new > CONSTEXPR_FLAG_ARITH_CONST_EXPR flag propagates nicely from subexpressions > to parent expressions at evaluation. > Fine for me. Feel free to add Reviewed-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html