aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1998-06-01 02:04:10 +0000
committerJason Merrill <jason@gcc.gnu.org>1998-05-31 22:04:10 -0400
commit8a70cb5e65432c387535f9a0b377edccfe8395f4 (patch)
treee1b5e9ab4784cbf4128e5b94ef0331788f040b96 /gcc
parent3504a7b9684d65e58f62f388cc61400a2168b4de (diff)
downloadgcc-8a70cb5e65432c387535f9a0b377edccfe8395f4.zip
gcc-8a70cb5e65432c387535f9a0b377edccfe8395f4.tar.gz
gcc-8a70cb5e65432c387535f9a0b377edccfe8395f4.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog5
-rw-r--r--gcc/cp/tree.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index c7e34a1..fb78a10 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -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.
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c
index c17c71a..de15c07 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;