[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 23:38:00 GMT 2012


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



More information about the Gcc-bugs mailing list