This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[committed, PATCH][gcc-5-branch] Fix g++.dg/cpp0x/constexpr-array13.C


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]