Commit 67933728 by Jan Hubicka Committed by Jan Hubicka

re PR tree-optimization/62053 (ICE: in remap_type_1, at tree-inline.c:540)


	PR tree-optimization/62053
	* tree.c (build_cplus_array_type): Layout type after variants are set.

From-SVN: r219705
parent 63e533ec
2015-01-15 Jan Hubicka <hubicka@ucw.cz>
PR tree-optimization/62053
* tree.c (build_cplus_array_type): Layout type after variants are set.
2015-01-15 Jakub Jelinek <jakub@redhat.com>
* cp-gimplify.c (cp_genericize_r): Call
......
......@@ -881,12 +881,12 @@ build_cplus_array_type (tree elt_type, tree index_type)
{
t = build_min_array_type (elt_type, index_type);
set_array_type_canon (t, elt_type, index_type);
if (!dependent)
layout_type (t);
TYPE_MAIN_VARIANT (t) = m;
TYPE_NEXT_VARIANT (t) = TYPE_NEXT_VARIANT (m);
TYPE_NEXT_VARIANT (m) = t;
if (!dependent)
layout_type (t);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment