Correct date value of the __cpp_size_t_suffix macro.
authoremsr <3dw4rd@verizon.net>
Thu, 4 Feb 2021 16:41:29 +0000 (11:41 -0500)
committeremsr <3dw4rd@verizon.net>
Thu, 4 Feb 2021 19:10:18 +0000 (14:10 -0500)
The value of __cpp_size_t_suffix is 202011 not 202006.

gcc/c-family/ChangeLog:

* c-cppbuiltin.c (c_cpp_builtins): __cpp_size_t_suffix=202011L.

gcc/testsuite/ChangeLog:

* g++.dg/cpp23/feat-cxx2b.C: __cpp_size_t_suffix == 202011.

gcc/c-family/c-cppbuiltin.c
gcc/testsuite/g++.dg/cpp23/feat-cxx2b.C

index 48dec21d4b41662ac46cb7a0956822fed96fe677..9f993c4aff23e1a340a1c0747864878f06cef64f 100644 (file)
@@ -1028,7 +1028,7 @@ c_cpp_builtins (cpp_reader *pfile)
       if (cxx_dialect > cxx20)
        {
          /* Set feature test macros for C++23.  */
-         cpp_define (pfile, "__cpp_size_t_suffix=202006L");
+         cpp_define (pfile, "__cpp_size_t_suffix=202011L");
        }
       if (flag_concepts)
         {
index 94e08a4896ce042d48eb166f7da0aa6cdb727bb9..4a342e967f87c27571d6e90b3baff6445fc0e76e 100644 (file)
 
 #ifndef __cpp_size_t_suffix
 #  error "__cpp_size_t_suffix"
-#elif __cpp_size_t_suffix != 202006
-#  error "__cpp_size_t_suffix != 202006"
+#elif __cpp_size_t_suffix != 202011
+#  error "__cpp_size_t_suffix != 202011"
 #endif