http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55081



--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-10-26 
15:33:45 UTC ---

(In reply to comment #1)

> but here DECL_INITIALIZED_BY_CONSTANT_EXPRESSION_P (decl) isn't set and

> cxx_dialect < cxx0x for -std=c++98.  Not sure what we should do here, either

> just call maybe_constant_value or maybe_constant_init otherwise to fold 
> sizeof,

> or, if it is really not appropriate for C++98 as an optimization,

> fold_sizeof_expr_r recursively plus fold.  Jason, what do you think?



I think let's just remove the cxx_dialect check here.

Reply via email to