]> gcc.gnu.org Git - gcc.git/commitdiff
tree.c (build_cplus_array_type_1): Do not call uses_template_parms() on a NULL index_...
authorZiemowit Laski <zlaski@apple.com>
Tue, 15 Apr 2003 00:34:11 +0000 (00:34 +0000)
committerZiemowit Laski <zlaski@gcc.gnu.org>
Tue, 15 Apr 2003 00:34:11 +0000 (00:34 +0000)
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

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

index c6cec1fd78065051d87a2d6ad864ca6ec615b8d4..281f83a1cd0828d8ef873c6bcba4bf2c677442cc 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 2003-04-13  Roger Sayle  <roger@eyesopen.com>
 
        * decl.c (duplicate_decls): Preserve pure and malloc attributes.
index edb4ca06a4e9a6ae53945d57bbaea5d5598e68b8..ee17ceaf560262cef59a9006eda044042865b873 100644 (file)
@@ -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;
This page took 0.084775 seconds and 5 git commands to generate.