summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2015-08-12 18:08:45 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2015-08-12 18:08:45 +0000
commit8c6dc41cf72960678235a7a321c09e6211b6d595 (patch)
treefd28591ea72ae43f0e97d222238df6d578c92bdf /gcc
parentaed8dc7f14f5632fbdc77e7e0d1e988294afbe7c (diff)
downloadgcc-8c6dc41cf72960678235a7a321c09e6211b6d595.tar.gz
PR c++/67104
* constexpr.c (cxx_eval_array_reference): Fix typo. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@226833 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cp/ChangeLog3
-rw-r--r--gcc/cp/constexpr.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 07ed20ff628..e8008ce0140 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,6 +1,9 @@
2015-08-12 Jason Merrill <jason@redhat.com>
PR c++/67104
+ * constexpr.c (cxx_eval_array_reference): Fix typo.
+
+ PR c++/67104
* constexpr.c (cxx_eval_array_reference): Handle sparse
CONSTRUCTORs.
diff --git a/gcc/cp/constexpr.c b/gcc/cp/constexpr.c
index b6788c7a7c0..6048f062593 100644
--- a/gcc/cp/constexpr.c
+++ b/gcc/cp/constexpr.c
@@ -1709,7 +1709,7 @@ cxx_eval_array_reference (const constexpr_ctx *ctx, tree t,
found = false;
vec<constructor_elt, va_gc> *v = CONSTRUCTOR_ELTS (ary);
constructor_elt *e;
- for (unsigned ix = 0; vec_safe_iterate (v, ix, &e); ++i)
+ for (unsigned ix = 0; vec_safe_iterate (v, ix, &e); ++ix)
{
if (TREE_CODE (e->index) == RANGE_EXPR)
{