diff options
author | Jie Zhang <jie@codesourcery.com> | 2010-04-07 10:14:45 +0000 |
---|---|---|
committer | Jie Zhang <jiez@gcc.gnu.org> | 2010-04-07 10:14:45 +0000 |
commit | 6addabbbe815be8107207fcb6e2aa640e2e8c6ca (patch) | |
tree | 88b97457fae13a30b8afc5e88b682efba5339cfe /gcc/expr.c | |
parent | 366f945f9bc15d885af5a20ed70547e96b2dafae (diff) | |
download | gcc-6addabbbe815be8107207fcb6e2aa640e2e8c6ca.zip gcc-6addabbbe815be8107207fcb6e2aa640e2e8c6ca.tar.gz gcc-6addabbbe815be8107207fcb6e2aa640e2e8c6ca.tar.bz2 |
re PR c++/42556 (Unnecessary generation of a zero initializer for array with C++)
cp/
PR c++/42556
* typeck2.c (split_nonconstant_init_1): Drop empty CONSTRUCTOR
when all of its elements are non-constant and have been split out.
testsuite/
PR c++/42556
* g++.dg/init/pr42556.C: New test.
From-SVN: r158047
Diffstat (limited to 'gcc/expr.c')
0 files changed, 0 insertions, 0 deletions