[Bug c++/55081] [4.8 regression?] Non-optimized static array elements initialization

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Oct 26 15:34:00 GMT 2012


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.



More information about the Gcc-bugs mailing list