This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
C++ testsuite g++.other/new3.C fix
- To: gcc-patches at gcc dot gnu dot org
- Subject: C++ testsuite g++.other/new3.C fix
- From: Mike Stump <mrs at windriver dot com>
- Date: Wed, 1 Nov 2000 18:31:51 -0800 (PST)
Be sure to initialize the size before use. I already checked it in.
Doing diffs in new3.C.~1~:
*** new3.C.~1~ Wed Aug 9 18:31:26 2000
--- new3.C Wed Nov 1 18:28:08 2000
*************** struct A
*** 6,11 ****
--- 6,12 ----
int size;
A ()
{
+ size = 20;
T *p;
p = new T[size];
int foo;
--------------