From 26fd3bf75b52c743b2c94802957c4f7379da7258 Mon Sep 17 00:00:00 2001 From: emsr <3dw4rd@verizon.net> Date: Thu, 4 Feb 2021 11:41:29 -0500 Subject: [PATCH] Correct date value of the __cpp_size_t_suffix macro. 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 | 2 +- gcc/testsuite/g++.dg/cpp23/feat-cxx2b.C | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/c-family/c-cppbuiltin.c b/gcc/c-family/c-cppbuiltin.c index 48dec21d4b4..9f993c4aff2 100644 --- a/gcc/c-family/c-cppbuiltin.c +++ b/gcc/c-family/c-cppbuiltin.c @@ -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) { diff --git a/gcc/testsuite/g++.dg/cpp23/feat-cxx2b.C b/gcc/testsuite/g++.dg/cpp23/feat-cxx2b.C index 94e08a4896c..4a342e967f8 100644 --- a/gcc/testsuite/g++.dg/cpp23/feat-cxx2b.C +++ b/gcc/testsuite/g++.dg/cpp23/feat-cxx2b.C @@ -544,6 +544,6 @@ #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 -- 2.30.2