This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/55081] [4.8 regression?] Non-optimized static array elements initialization
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Fri, 26 Oct 2012 15:33:45 +0000
- Subject: [Bug c++/55081] [4.8 regression?] Non-optimized static array elements initialization
- Auto-submitted: auto-generated
- References: <bug-55081-4@http.gcc.gnu.org/bugzilla/>
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.