On 03/21/2016 10:38 AM, Patrick Palka wrote:
non_const_var_error() does not expect to complain about a decl whose
DECL_INITIAL is a constant.  But it is not sufficient to check that the
DECL_INITIAL is a constant since it could be the case that it was folded
to a constant and yet was originally initialized by a non-constant
expression.  So to avoid ICEing here, this patch makes
DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P get checked as well.

Hmm, I wonder if we need the other checks, or if just checking that macro is good enough. But your patch seems like the way to go for GCC 6. OK.

Jason


Reply via email to