* decl.c (compute_array_index_type): Use size_one_node.
From-SVN: r200278
This commit is contained in:
parent
0daa6ac0ca
commit
8fc95c057c
2 changed files with 3 additions and 1 deletions
|
@ -1,5 +1,7 @@
|
|||
2013-06-20 Jason Merrill <jason@redhat.com>
|
||||
|
||||
* decl.c (compute_array_index_type): Use size_one_node.
|
||||
|
||||
* pt.c (process_partial_specialization): Build a TEMPLATE_DECL for
|
||||
a partial specialization.
|
||||
(tsubst_decl): Don't clobber CLASSTYPE_TI_TEMPLATE of a partial
|
||||
|
|
|
@ -8241,7 +8241,7 @@ compute_array_index_type (tree name, tree size, tsubst_flags_t complain)
|
|||
constant. Just build the index type and mark that it requires
|
||||
structural equality checks. */
|
||||
itype = build_index_type (build_min (MINUS_EXPR, sizetype,
|
||||
size, integer_one_node));
|
||||
size, size_one_node));
|
||||
TYPE_DEPENDENT_P (itype) = 1;
|
||||
TYPE_DEPENDENT_P_VALID (itype) = 1;
|
||||
SET_TYPE_STRUCTURAL_EQUALITY (itype);
|
||||
|
|
Loading…
Add table
Reference in a new issue