This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
[committed, PATCH][gcc-5-branch] Fix g++.dg/cpp0x/constexpr-array13.C
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: GCC Development <gcc at gcc dot gnu dot org>
- Date: Wed, 2 Mar 2016 04:59:13 -0800
- Subject: [committed, PATCH][gcc-5-branch] Fix g++.dg/cpp0x/constexpr-array13.C
- Authentication-results: sourceware.org; auth=none
Fix
FAIL: g++.dg/cpp0x/constexpr-array13.C -std=c++11 (test for errors, line 6)
FAIL: g++.dg/cpp0x/constexpr-array13.C -std=c++11 (test for excess errors)
FAIL: g++.dg/cpp0x/constexpr-array13.C -std=c++14 (test for errors, line 6)
FAIL: g++.dg/cpp0x/constexpr-array13.C -std=c++14 (test for excess errors)
on gcc-5-branch.
--
H.J.
--
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index d05953a..7d61d0e 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
+
+ Backport from mainline
+ 2015-11-25 Paolo Carlini <paolo.carlini@oracle.com>
+
+ * g++.dg/cpp0x/constexpr-array13.C: Fix.
+
2016-03-02 Eric Botcazou <ebotcazou@adacore.com>
* gcc.target/i386/pr70007.c: Tweak.
diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-array13.C
b/gcc/testsuite/g++.dg/cpp0x/constexpr-array13.C
index 13ab5a7..e2a6e86 100644
--- a/gcc/testsuite/g++.dg/cpp0x/constexpr-array13.C
+++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-array13.C
@@ -3,4 +3,4 @@
constexpr char c[] = "hello";
constexpr const char *p = c;
-constexpr char ch = *(p-1); // { dg-error "negative array subscript" }
+constexpr char ch = *(p-1); // { dg-error "array subscript" }
--
2.5.0