re PR c++/71214 (Typo in feature test macro for rvalue references)
authorMarkus Trippelsdorf <markus@trippelsdorf.de>
Tue, 5 Jul 2016 17:50:41 +0000 (17:50 +0000)
committerMarkus Trippelsdorf <trippels@gcc.gnu.org>
Tue, 5 Jul 2016 17:50:41 +0000 (17:50 +0000)
Fix PR c++/71214

       PR c++/71214
       * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.

From-SVN: r238017

gcc/c-family/ChangeLog
gcc/c-family/c-cppbuiltin.c
gcc/testsuite/g++.dg/cpp1y/feat-cxx11.C
gcc/testsuite/g++.dg/cpp1y/feat-cxx14.C
gcc/testsuite/g++.dg/cpp1y/feat-cxx98-neg.C
gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C

index 679cb6bda826fab4b82f7731d7f38d696647bba5..f30c9f321a4b8ce12b5499bd3b177697cdbd9c6c 100644 (file)
@@ -1,3 +1,8 @@
+2016-07-05  Markus Trippelsdorf  <markus@trippelsdorf.de>
+
+       PR c++/71214
+       * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_rvalue_references.
+
 2016-06-29  Thomas Schwinge  <thomas@codesourcery.com>
 
        * c-pragma.h (enum pragma_kind): Rename
index 408ad4747a330fbc7402c34022a052b31523f206..3d4587e6db626db4aad7a22ca8b4186bd5c37fc4 100644 (file)
@@ -848,6 +848,7 @@ c_cpp_builtins (cpp_reader *pfile)
          cpp_define (pfile, "__cpp_decltype=200707");
          cpp_define (pfile, "__cpp_attributes=200809");
          cpp_define (pfile, "__cpp_rvalue_reference=200610");
+         cpp_define (pfile, "__cpp_rvalue_references=200610");
          cpp_define (pfile, "__cpp_variadic_templates=200704");
          cpp_define (pfile, "__cpp_initializer_lists=200806");
          cpp_define (pfile, "__cpp_delegating_constructors=200604");
index 397b9a899573cab7b704f672a10ee94a1fa91850..6928d6bcbd872dfbed41d953ff23b2e8a215f23f 100644 (file)
 #  error "__cpp_attributes != 200809"
 #endif
 
-#ifndef __cpp_rvalue_reference
-#  error "__cpp_rvalue_reference"
-#elif __cpp_rvalue_reference != 200610
-#  error "__cpp_rvalue_reference != 200610"
+#ifndef __cpp_rvalue_references
+#  error "__cpp_rvalue_references"
+#elif __cpp_rvalue_references != 200610
+#  error "__cpp_rvalue_references != 200610"
 #endif
 
 #ifndef __cpp_variadic_templates
index fa59f90fa8923c606f059a6feee67a840df7817f..dc30a9b3cf849f9c9a84986fff2e2fb96a227e45 100644 (file)
 #  error "__cpp_attributes != 200809"
 #endif
 
-#ifndef __cpp_rvalue_reference
-#  error "__cpp_rvalue_reference"
-#elif __cpp_rvalue_reference != 200610
-#  error "__cpp_rvalue_reference != 200610"
+#ifndef __cpp_rvalue_references
+#  error "__cpp_rvalue_references"
+#elif __cpp_rvalue_references != 200610
+#  error "__cpp_rvalue_references != 200610"
 #endif
 
 #ifndef __cpp_variadic_templates
index 886b3d3df10e651390f84a81e53365d634bfae1d..5fbffabd1396e217ac1bc7c51a7cb59f6aba2161 100644 (file)
@@ -42,8 +42,8 @@
 #  error "__cpp_attributes" // { dg-error "error" }
 #endif
 
-#ifndef __cpp_rvalue_reference
-#  error "__cpp_rvalue_reference" // { dg-error "error" }
+#ifndef __cpp_rvalue_references
+#  error "__cpp_rvalue_references" // { dg-error "error" }
 #endif
 
 #ifndef __cpp_variadic_templates
index f8a87a8ddc3721a6feb0119864d2312b7795b49c..c7becc1cbb47d05f99ec19a4ce03662782f04a7d 100644 (file)
 #  error "__cpp_attributes != 200809"
 #endif
 
-#ifndef __cpp_rvalue_reference
-#  error "__cpp_rvalue_reference"
-#elif __cpp_rvalue_reference != 200610
-#  error "__cpp_rvalue_reference != 200610"
+#ifndef __cpp_rvalue_references
+#  error "__cpp_rvalue_references"
+#elif __cpp_rvalue_references != 200610
+#  error "__cpp_rvalue_references != 200610"
 #endif
 
 #ifndef __cpp_variadic_templates