tree.c (build_cplus_array_type_1): Also check index_type for template parms.
authorJason Merrill <jason@yorick.cygnus.com>
Mon, 1 Jun 1998 02:04:10 +0000 (02:04 +0000)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 1 Jun 1998 02:04:10 +0000 (22:04 -0400)
* tree.c (build_cplus_array_type_1): Also check index_type for
template parms.

From-SVN: r20164

gcc/cp/ChangeLog
gcc/cp/tree.c

index c7e34a1bc7eb528b1c606aec3b7c7b8e9864bdf3..fb78a1092dd8904a617e163fcaea79e2092b04d3 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        * pt.c (tsubst): Always copy BINFO_BASETYPES.
index c17c71a3138e302e1f8790dc26f96445804988c6..de15c07953f6e3536c74fe7d559d65a924fe1ca4 100644 (file)
@@ -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;