This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52796] [C++11] Initialization of primitive object with 0-length parameter pack fails to value-initialize
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 03 Apr 2012 23:38:25 +0000
- Subject: [Bug c++/52796] [C++11] Initialization of primitive object with 0-length parameter pack fails to value-initialize
- Auto-submitted: auto-generated
- References: <bug-52796-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52796
--- Comment #5 from Jason Merrill <jason at gcc dot gnu.org> 2012-04-03 23:38:25 UTC ---
Author: jason
Date: Tue Apr 3 23:38:21 2012
New Revision: 186122
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186122
Log:
PR c++/52796
* pt.c (tsubst_initializer_list): A pack expansion with no elements
means value-initialization.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic-value1.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog