Blame SOURCES/gcc44-pr56403.patch

dc1507
2013-02-24  Jakub Jelinek  <jakub@redhat.com>
dc1507
dc1507
	PR c++/56403
dc1507
	* init.c (build_zero_init_1): Use RECORD_OR_UNION_CODE_P instead
dc1507
	of CLASS_TYPE_P.
dc1507
dc1507
	* g++.dg/torture/pr56403.C: New test.
dc1507
dc1507
--- gcc/cp/init.c	(revision 196259)
dc1507
+++ gcc/cp/init.c	(revision 196260)
dc1507
@@ -183,7 +183,7 @@ build_zero_init_1 (tree type, tree nelts
dc1507
     ;
dc1507
   else if (SCALAR_TYPE_P (type))
dc1507
     init = convert (type, integer_zero_node);
dc1507
-  else if (CLASS_TYPE_P (type))
dc1507
+  else if (RECORD_OR_UNION_CODE_P (TREE_CODE (type)))
dc1507
     {
dc1507
       tree field;
dc1507
       VEC(constructor_elt,gc) *v = NULL;
dc1507
--- gcc/testsuite/g++.dg/torture/pr56403.C	(revision 0)
dc1507
+++ gcc/testsuite/g++.dg/torture/pr56403.C	(revision 196260)
dc1507
@@ -0,0 +1,12 @@
dc1507
+// PR c++/56403
dc1507
+// { dg-do compile }
dc1507
+
dc1507
+#include <stdarg.h>
dc1507
+
dc1507
+struct S { va_list err_args; };
dc1507
+
dc1507
+void *
dc1507
+foo ()
dc1507
+{
dc1507
+  return new S ();
dc1507
+}