[Bug c++/52796] [C++11] Initialization of primitive object with 0-length parameter pack fails to value-initialize

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 3 22:51:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52796

--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2012-04-03 22:51:14 UTC ---
Author: jason
Date: Tue Apr  3 22:51:08 2012
New Revision: 186120

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186120
Log:
    PR c++/52796
    * pt.c (tsubst_initializer_list): A pack expansion with no elements
    means value-initialization.

Added:
    branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/variadic-value1.C
Modified:
    branches/gcc-4_6-branch/gcc/cp/ChangeLog
    branches/gcc-4_6-branch/gcc/cp/pt.c
    branches/gcc-4_6-branch/gcc/testsuite/ChangeLog



More information about the Gcc-bugs mailing list