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...@intel.com> + + Backport from mainline + 2015-11-25 Paolo Carlini <paolo.carl...@oracle.com> + + * g++.dg/cpp0x/constexpr-array13.C: Fix. + 2016-03-02 Eric Botcazou <ebotca...@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