PR c++/31724
* init.c (build_new_1): Use structural equality on the copy of the
array type.
2007-06-29 Douglas Gregor <doug.gregor@gmail.com>
* g++.dg/other/canon-31724.C: New.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126124
138bc75d-0d04-0410-961f-
82ee72b054a4
+2007-06-29 Douglas Gregor <doug.gregor@gmail.com>
+
+ PR c++/31724
+ * init.c (build_new_1): Use structural equality on the copy of the
+ array type.
+
2007-06-28 Geoffrey Keating <geoffk@apple.com>
* decl2.c (determine_visibility): Implement
of the incomplete array type. */
full_type = build_distinct_type_copy (full_type);
TYPE_DOMAIN (full_type) = index;
+ SET_TYPE_STRUCTURAL_EQUALITY (full_type);
}
else
{
+2007-06-29 Douglas Gregor <doug.gregor@gmail.com>
+
+ * g++.dg/other/canon-31724.C: New.
+
2007-06-29 Jan Hubicka <jh@suse.cz>
PR middle-end/32372
PR tree-opt/32417
* gfortran.fortran-torture/compile/pr32417.f90: New test.
+>>>>>>> .r126123
2007-06-28 Dorit Nuzman <dorit@il.ibm.com>
* gcc.dg/vect/vect-iv-4.c: Test now passes on vect_pack_trunc
--- /dev/null
+struct ac {ac();};
+ac spline_rep1(void)
+{
+ typedef ac at[2];
+ ac * b = new ac[2];
+ at *a = (at*)b;
+ return (*a)[0];
+}