PR tree-optimization/62127
* g++.dg/torture/pr62127.C: New testcase.
* tree.c (remap_type_1): When remapping array, remap
also its type.
From-SVN: r216150
+2014-10-13 Jan Hubicka <hubicka@ucw.cz>
+
+ PR tree-optimization/62127
+ * tree.c (remap_type_1): When remapping array, remap
+ also its type.
+
2014-10-13 Christophe Lyon <christophe.lyon@linaro.org>
* Makefile.in: (check-%): Update comment, as RUNTESTFLAGS no
+2014-10-13 Jan Hubicka <hubicka@ucw.cz>
+
+ PR tree-optimization/62127
+ * g++.dg/torture/pr62127.C: New testcase.
+
2014-09-19 Marat Zakirov <m.zakirov@samsung.com>
* c-c++-common/asan/bitfield-5.c: New test.
--- /dev/null
+// { dg-do compile }
+struct A
+{
+ A(int);
+};
+
+A::A(int i)
+{
+ int x[1][i];
+ x[0][0] = 0;
+}
if (TYPE_MAIN_VARIANT (new_tree) != new_tree
&& TREE_TYPE (type) == TREE_TYPE (TYPE_MAIN_VARIANT (type)))
TREE_TYPE (new_tree) = TREE_TYPE (TYPE_MAIN_VARIANT (new_tree));
+ else
+ TREE_TYPE (new_tree) = remap_type (TREE_TYPE (new_tree), id);
if (TYPE_MAIN_VARIANT (new_tree) != new_tree)
{