[C++11][4.9] Add missing REDUC_PLUS_EXPR case to potential_constant_expression_1.

Jason Merrill jason@redhat.com
Wed Mar 20 19:25:00 GMT 2013


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



More information about the Gcc-patches mailing list