aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/ChangeLog
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-12-21 22:58:23 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2016-12-21 22:58:23 +0100
commitbc2a38dff859fcd1ec0aedd8c7d0fb748f2dbede (patch)
treef329df2339ddea40f6053ce6ac5b7a32624c58b6 /gcc/cp/ChangeLog
parent31bfc9b9dd65ecddff3afa690906d94ef7b773da (diff)
downloadgcc-bc2a38dff859fcd1ec0aedd8c7d0fb748f2dbede.zip
gcc-bc2a38dff859fcd1ec0aedd8c7d0fb748f2dbede.tar.gz
gcc-bc2a38dff859fcd1ec0aedd8c7d0fb748f2dbede.tar.bz2
re PR c++/77830 (internal compiler error: in output_constructor_regular_field, at varasm.c:4968, when using constexpr (with testcase))
PR c++/77830 * constexpr.c (cxx_eval_array_reference): Perform out of bounds verification even if lval is true, just allow one past the last element in that case. (cxx_eval_store_expression): Detect stores to out of bound ARRAY_REF. * g++.dg/cpp1y/pr77830.C: New test. * g++.dg/cpp0x/pr65398.C: Adjust expected diagnostics. From-SVN: r243873
Diffstat (limited to 'gcc/cp/ChangeLog')
-rw-r--r--gcc/cp/ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index db3582a..180a0fb 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,3 +1,12 @@
+2016-12-21 Jakub Jelinek <jakub@redhat.com>
+
+ PR c++/77830
+ * constexpr.c (cxx_eval_array_reference): Perform out of bounds
+ verification even if lval is true, just allow one past the last
+ element in that case.
+ (cxx_eval_store_expression): Detect stores to out of bound
+ ARRAY_REF.
+
2016-12-21 Jason Merrill <jason@redhat.com>
Implement P0522R0, matching of template template arguments.