init.c (build_value_init): Decide whether or not to zero-initialize based on user...
authorJason Merrill <jason@redhat.com>
Wed, 29 Jun 2011 14:09:03 +0000 (10:09 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Wed, 29 Jun 2011 14:09:03 +0000 (10:09 -0400)
commit7b37a0c548b633d91e07fbb2c941828aafd5cd3b
treee966a3c2683437fd89e8b86e732a7bade6ed2775
parent2061820e0d4998d1792021cfa7283c2ce345b093
init.c (build_value_init): Decide whether or not to zero-initialize based on user-providedness of default...

* init.c (build_value_init): Decide whether or not to zero-initialize
based on user-providedness of default ctor, not any ctor.
(build_value_init_noctor): Adjust assert.

From-SVN: r175640
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp0x/initlist-value2.C [new file with mode: 0644]