This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]