Commit 8a70cb5e by Jason Merrill Committed by Jason Merrill

tree.c (build_cplus_array_type_1): Also check index_type for template parms.

	* tree.c (build_cplus_array_type_1): Also check index_type for
	template parms.

From-SVN: r20164
parent 3504a7b9
1998-06-01 Jason Merrill <jason@yorick.cygnus.com>
* tree.c (build_cplus_array_type_1): Also check index_type for
template parms.
1998-05-31 Jason Merrill <jason@yorick.cygnus.com> 1998-05-31 Jason Merrill <jason@yorick.cygnus.com>
* pt.c (tsubst): Always copy BINFO_BASETYPES. * pt.c (tsubst): Always copy BINFO_BASETYPES.
......
...@@ -472,7 +472,8 @@ build_cplus_array_type_1 (elt_type, index_type) ...@@ -472,7 +472,8 @@ build_cplus_array_type_1 (elt_type, index_type)
saveable_obstack = &permanent_obstack; saveable_obstack = &permanent_obstack;
} }
if (processing_template_decl) if (processing_template_decl
|| uses_template_parms (index_type))
{ {
t = make_node (ARRAY_TYPE); t = make_node (ARRAY_TYPE);
TREE_TYPE (t) = elt_type; TREE_TYPE (t) = elt_type;
......
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