Re: [PATCH] Fix PR c++/70204 (ICE in non_const_var_error)

2016-03-21 Thread Jason Merrill
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 i

[PATCH] Fix PR c++/70204 (ICE in non_const_var_error)

2016-03-21 Thread Patrick Palka
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