From: Jason Merrill Date: Mon, 1 Jun 1998 02:04:10 +0000 (+0000) Subject: tree.c (build_cplus_array_type_1): Also check index_type for template parms. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8a70cb5e65432c387535f9a0b377edccfe8395f4;p=gcc.git 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 --- diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index c7e34a1bc7e..fb78a1092dd 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,8 @@ +1998-06-01 Jason Merrill + + * tree.c (build_cplus_array_type_1): Also check index_type for + template parms. + 1998-05-31 Jason Merrill * pt.c (tsubst): Always copy BINFO_BASETYPES. diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index c17c71a3138..de15c07953f 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -472,7 +472,8 @@ build_cplus_array_type_1 (elt_type, index_type) saveable_obstack = &permanent_obstack; } - if (processing_template_decl) + if (processing_template_decl + || uses_template_parms (index_type)) { t = make_node (ARRAY_TYPE); TREE_TYPE (t) = elt_type;