From 8a70cb5e65432c387535f9a0b377edccfe8395f4 Mon Sep 17 00:00:00 2001 From: Jason Merrill Date: Mon, 1 Jun 1998 02:04:10 +0000 Subject: [PATCH] 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 --- gcc/cp/ChangeLog | 5 +++++ gcc/cp/tree.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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; -- 2.30.2