re PR c++/55081 (Non-optimized static array elements initialization)
authorJakub Jelinek <jakub@redhat.com>
Fri, 26 Oct 2012 20:30:35 +0000 (22:30 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 26 Oct 2012 20:30:35 +0000 (22:30 +0200)
commitc7a918f192a9ab425d2531e15e36bf80fac17ef8
tree89d72c8e65e639e19213af9f210318c7176ab5a6
parent73f4149137364da5b6d1238720b7fc21226b5b27
re PR c++/55081 (Non-optimized static array elements initialization)

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.

From-SVN: r192862
gcc/cp/ChangeLog
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr55081.C [new file with mode: 0644]