This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]