Re: [C++ PATCH] Fix ICE with statement expression (PR c++/71728)

2016-07-21 Thread Jason Merrill
OK. On Thu, Jul 21, 2016 at 12:09 PM, Jakub Jelinek wrote: > Hi! > > It is true that parsing should make sure that GOTO_EXPRs (other than > break/continue) aren't allowed in constant expression contexts, but > potential_constant_expression_1 may be called (with tf_none) also > on arbitrary code e

[C++ PATCH] Fix ICE with statement expression (PR c++/71728)

2016-07-21 Thread Jakub Jelinek
Hi! It is true that parsing should make sure that GOTO_EXPRs (other than break/continue) aren't allowed in constant expression contexts, but potential_constant_expression_1 may be called (with tf_none) also on arbitrary code either for warning purposes, or (very recent change) also in cp_fully_fol