]> gcc.gnu.org Git - gcc.git/commit - gcc/cp/cp-tree.h
re PR c++/9879 (ICE / endless compile with "new int[2]()")
authorMark Mitchell <mark@codesourcery.com>
Fri, 28 Feb 2003 20:15:34 +0000 (20:15 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 28 Feb 2003 20:15:34 +0000 (20:15 +0000)
commit1cb8292f2ef25a34d7d9efa20ba615514599d900
tree3ea59f18a92962b95d5ab1ea899640ed3c1057c9
parentf8f0e56649f3f768c10fdada122f616055b3d680
re PR c++/9879 (ICE / endless compile with "new int[2]()")

PR c++/9879
* cp-tree.h (build_zero_init): Add parameter.
* decl.c (cp_finish_decl): Adjust call.
* init.c (build_zero_init): Add nelts parameter.  Adjust recursive
calls.
(build_default_init): Add nelts parameter.  Adjust calls to
build_zero_init.
(build_new_1): Adjust call to build_default_init.
* typeck2.c (process_init_constructor): Adjust call to build_zero_init.

PR c++/9879
* testsuite/g++.dg/init/new4.C: New test.

From-SVN: r63579
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/init.c
gcc/cp/typeck2.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/init/new4.C [new file with mode: 0644]
This page took 0.060202 seconds and 5 git commands to generate.