Re: [C++ PATCH] Fix ICE on empty statement expression (PR c++/79822)

2017-03-06 Thread Jason Merrill
OK. On Fri, Mar 3, 2017 at 9:34 AM, Jakub Jelinek wrote: > Hi! > > Seems callers of cxx_eval_constant_expression don't really like if it > returns NULL, which is what cxx_eval_statement_list returns for empty > STATEMENT_LIST. In statement expressions we treat those the same > as (void) 0 or any

[C++ PATCH] Fix ICE on empty statement expression (PR c++/79822)

2017-03-03 Thread Jakub Jelinek
Hi! Seems callers of cxx_eval_constant_expression don't really like if it returns NULL, which is what cxx_eval_statement_list returns for empty STATEMENT_LIST. In statement expressions we treat those the same as (void) 0 or any other statement with void value. Bootstrapped/regtested on x86_64-li