------- Comment #4 from hjl dot tools at gmail dot com  2010-05-01 00:23 -------
This patch:

---
Index: cp/init.c
===================================================================
--- cp/init.c   (revision 158918)
+++ cp/init.c   (working copy)
@@ -1911,7 +1911,7 @@ build_new_1 (VEC(tree,gc) **placement, t

   is_initialized = (TYPE_NEEDS_CONSTRUCTING (elt_type) || *init != NULL);

-  if (*init == NULL)
+  if (*init == NULL && !type_has_user_provided_constructor (elt_type))
     {
       bool maybe_uninitialized_error = false;
       /* A program that calls for default-initialization [...] of an
---

fixed the problem. Jason, does it make any senses?


-- 

hjl dot tools at gmail dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at redhat dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43951

Reply via email to