diff options
author | Mark Mitchell <mark@codesourcery.com> | 2007-07-04 00:22:51 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2007-07-04 00:22:51 +0000 |
commit | 57ccb5462446fd13a46c4c49b11d78b96a31f0d3 (patch) | |
tree | ffed7090e8a6aa7150162e7d4cabdab06ba48d92 | |
parent | 39fb9d7250581a22c2d773457255dc61a51e0099 (diff) | |
download | gcc-57ccb5462446fd13a46c4c49b11d78b96a31f0d3.zip gcc-57ccb5462446fd13a46c4c49b11d78b96a31f0d3.tar.gz gcc-57ccb5462446fd13a46c4c49b11d78b96a31f0d3.tar.bz2 |
* init.c (build_new): Tweak comment.
From-SVN: r126293
-rw-r--r-- | gcc/cp/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/cp/init.c | 4 |
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7316fbf..17b76c0 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2007-07-03 Mark Mitchell <mark@codesourcery.com> + + * init.c (build_new): Tweak comment. + 2007-06-29 Dave Brolley <brolley@redhat.com> PR c++/31743 diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 1647bc0..b000cfd 100644 --- a/gcc/cp/init.c +++ b/gcc/cp/init.c @@ -2207,7 +2207,9 @@ build_new (tree placement, tree type, tree nelts, tree init, return error_mark_node; } - /* PR 31743: Make sure the array type has a known size. */ + /* The type allocated must be complete. If the new-type-id was + "T[N]" then we are just checking that "T" is complete here, but + that is equivalent, since the value of "N" doesn't matter. */ if (!complete_type_or_else (type, NULL_TREE)) return error_mark_node; |