Re: [C++ Patch] PR 59571

2014-03-17 Thread Jason Merrill
On 03/17/2014 05:38 AM, Paolo Carlini wrote: noticed this issue, which looks simple to fix. The ICE happens in cxx_eval_constant_expression, because it cannot handle a CAST_EXPR (or any othe *_CAST, for that matter). In fact check_narrowing calls maybe_constant_value, and, because we are in a tem

[C++ Patch] PR 59571

2014-03-17 Thread Paolo Carlini
Hi, noticed this issue, which looks simple to fix. The ICE happens in cxx_eval_constant_expression, because it cannot handle a CAST_EXPR (or any othe *_CAST, for that matter). In fact check_narrowing calls maybe_constant_value, and, because we are in a template, the latter faces the unfolded