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: "jakub 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 20:30:39 +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 #5 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-10-26 20:30:39 UTC ---
Author: jakub
Date: Fri Oct 26 20:30:35 2012
New Revision: 192862
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192862
Log:
PR c++/55081
* typeck2.c (store_init_value): Call fold_non_dependent_expr
and maybe_constant_init even for C++98.
* g++.dg/opt/pr55081.C: New test.
Added:
trunk/gcc/testsuite/g++.dg/opt/pr55081.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/typeck2.c
trunk/gcc/testsuite/ChangeLog