From 57ccb5462446fd13a46c4c49b11d78b96a31f0d3 Mon Sep 17 00:00:00 2001 From: Mark Mitchell Date: Wed, 4 Jul 2007 00:22:51 +0000 Subject: [PATCH] * init.c (build_new): Tweak comment. From-SVN: r126293 --- gcc/cp/ChangeLog | 4 ++++ gcc/cp/init.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 7316fbf0c41..17b76c000f4 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,7 @@ +2007-07-03 Mark Mitchell + + * init.c (build_new): Tweak comment. + 2007-06-29 Dave Brolley PR c++/31743 diff --git a/gcc/cp/init.c b/gcc/cp/init.c index 1647bc005ac..b000cfd0fa8 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; -- 2.30.2