[Bug c++/33510] Array size of array with size determined by the initializer wrong with packs
dgregor at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Nov 10 02:53:00 GMT 2007
------- Comment #1 from dgregor at gcc dot gnu dot org 2007-11-10 02:53 -------
Subject: Bug 33510
Author: dgregor
Date: Sat Nov 10 02:53:31 2007
New Revision: 130065
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=130065
Log:
2007-11-09 Douglas Gregor <doug.gregor@gmail.com>
PR c++/33510
* decl.c (cp_complete_array_type): If any of the initializer
elements are pack expansions, don't compute the array size yet.
2007-11-09 Douglas Gregor <doug.gregor@gmail.com>
PR c++/33510
* g++.dg/cpp0x/variadic-init.C: New.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/variadic-init.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33510
More information about the Gcc-bugs
mailing list