On 03/20/2013 02:03 PM, James Greenhalgh wrote:
The argument would be; if we found an unexpected tree code then it must have been introduced by folding. If it was a constant, folding would have returned the constant not the expression. So it must not be a constant.
Unless the operands involve calls to constexpr functions, which aren't folded by fold.
Jason