mirror of
git://gcc.gnu.org/git/gcc.git
synced 2024-12-30 11:24:56 +08:00
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
This commit is contained in:
parent
47f2b6acd5
commit
e623703138
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user