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

2016-03-02 Thread H.J. Lu
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  
+
+ Backport from mainline
+ 2015-11-25  Paolo Carlini  
+
+ * g++.dg/cpp0x/constexpr-array13.C: Fix.
+
 2016-03-02  Eric Botcazou  

  * 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


gcc-4.9-20160302 is now available

2016-03-02 Thread gccadmin
Snapshot gcc-4.9-20160302 is now available on
  ftp://gcc.gnu.org/pub/gcc/snapshots/4.9-20160302/
and on various mirrors, see http://gcc.gnu.org/mirrors.html for details.

This snapshot has been generated from the GCC 4.9 SVN branch
with the following options: svn://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch 
revision 233918

You'll find:

 gcc-4.9-20160302.tar.bz2 Complete GCC

  MD5=e92af1053c569fac7c4b08c39061dcda
  SHA1=e643824d094fe905c59b17dd8288dd73e79bfb4a

Diffs from 4.9-20160224 are available in the diffs/ subdirectory.

When a particular snapshot is ready for public consumption the LATEST-4.9
link is updated and a message is sent to the gcc list.  Please do not use
a snapshot before it has been announced that way.