This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: PATCH 11228
- From: Mark Mitchell <mark at codesourcery dot com>
- To: Matt Austern <austern at apple dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: 19 Jun 2003 16:49:06 -0700
- Subject: Re: PATCH 11228
- Organization: CodeSourcery, LLC
- References: <79BFFD50-A28B-11D7-8BB9-000393B2ABA2@apple.com>
On Thu, 2003-06-19 at 12:23, Matt Austern wrote:
> This is a patch for the C++ front end bug
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11228.
> The bug was that the compiler assumed it could always use
> build_zero_init to default-
> initialize an array of POD types. That assumption was false for arrays
> where the bound
> was variable. This patch fixes that assumption, and adds assertions
> and test cases.
This is OK for mainline and branch, but with one change.
Write "nelts != NULL_TREE" as "nelts"; we've favored the compact form
over the more explicit form.
Thanks,
--
Mark Mitchell <mark@codesourcery.com>
CodeSourcery, LLC