* init.c (build_new): Tweak comment.
authorMark Mitchell <mark@codesourcery.com>
Wed, 4 Jul 2007 00:22:51 +0000 (00:22 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Wed, 4 Jul 2007 00:22:51 +0000 (00:22 +0000)
From-SVN: r126293

gcc/cp/ChangeLog
gcc/cp/init.c

index 7316fbf0c4161075b6374438f204c95197cbd32d..17b76c000f4d9067a760fe88724ece62457f4bf8 100644 (file)
@@ -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
index 1647bc005ac0a2117851032a8b1be7b66040358a..b000cfd0fa87e7a7fe688070d0631d791d4df50f 100644 (file)
@@ -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;