diff options
Diffstat (limited to 'gcc/cp/cp-array-notation.c')
-rw-r--r-- | gcc/cp/cp-array-notation.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cp/cp-array-notation.c b/gcc/cp/cp-array-notation.c index 36d6624..31be7d6 100644 --- a/gcc/cp/cp-array-notation.c +++ b/gcc/cp/cp-array-notation.c @@ -1375,8 +1375,8 @@ build_array_notation_ref (location_t loc, tree array, tree start, tree length, "using array notation with array of unknown bound"); return error_mark_node; } - start = cp_fold_convert (ptrdiff_type_node, TYPE_MINVAL (domain)); - length = size_binop (PLUS_EXPR, TYPE_MAXVAL (domain), size_one_node); + start = cp_fold_convert (ptrdiff_type_node, TYPE_MIN_VALUE (domain)); + length = size_binop (PLUS_EXPR, TYPE_MAX_VALUE (domain), size_one_node); length = cp_fold_convert (ptrdiff_type_node, length); } |