This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/32597] New operation with empty parameter pack does not value-initialize
- From: "dgregor at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Aug 2007 19:18:36 -0000
- Subject: [Bug c++/32597] New operation with empty parameter pack does not value-initialize
- References: <bug-32597-6353@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from dgregor at gcc dot gnu dot org 2007-08-31 19:18 -------
Subject: Bug 32597
Author: dgregor
Date: Fri Aug 31 19:18:20 2007
New Revision: 128000
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=128000
Log:
2007-08-31 Douglas Gregor <doug.gregor@gmail.com>
PR c++/32597
* init.c (build_default_init): Make extern.
* cp-tree.h (build_default_init): Declare here.
* pt.c (tsubst_expr): When the instantiation of the initializer of
a variable results in an empty list, default-initialize the
variable.
(tsubst_copy_and_build): When the instantiation of the initializer
in a new expression results in an empty initializer list,
default-initialize it.
2007-08-31 Douglas Gregor <doug.gregor@gmail.com>
PR c++/32597
* gcc/testsuite/g++.dg/cpp0x/variadic-new2.C: New.
* gcc/testsuite/g++.dg/cpp0x/variadic-new.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic-new.C
trunk/gcc/testsuite/g++.dg/cpp0x/variadic-new2.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/cp-tree.h
trunk/gcc/cp/init.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32597