diff options
| author | Ziemowit Laski <zlaski@apple.com> | 2003-04-15 00:34:11 +0000 |
|---|---|---|
| committer | Ziemowit Laski <zlaski@gcc.gnu.org> | 2003-04-15 00:34:11 +0000 |
| commit | e62370313892135cb00868a78d506d915dcc27cc (patch) | |
| tree | 615565b65eaf68a4b87dcce7124241fb825d9e65 /gcc/cp/tree.c | |
| parent | 47f2b6acd5e27731aa9804a3a8bc52276bac0529 (diff) | |
| download | gcc-e62370313892135cb00868a78d506d915dcc27cc.zip gcc-e62370313892135cb00868a78d506d915dcc27cc.tar.gz gcc-e62370313892135cb00868a78d506d915dcc27cc.tar.bz2 | |
tree.c (build_cplus_array_type_1): Do not call uses_template_parms() on a NULL index_type.
2003-04-14 Ziemowit Laski <zlaski@apple.com>
* tree.c (build_cplus_array_type_1): Do not call
uses_template_parms() on a NULL index_type.
From-SVN: r65613
Diffstat (limited to 'gcc/cp/tree.c')
| -rw-r--r-- | gcc/cp/tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index edb4ca0..ee17cea 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -516,7 +516,7 @@ build_cplus_array_type_1 (elt_type, index_type) && index_type && TYPE_MAX_VALUE (index_type) && TREE_CODE (TYPE_MAX_VALUE (index_type)) != INTEGER_CST) || uses_template_parms (elt_type) - || uses_template_parms (index_type)) + || (index_type && uses_template_parms (index_type))) { t = make_node (ARRAY_TYPE); TREE_TYPE (t) = elt_type; |
