diff options
author | emsr <3dw4rd@verizon.net> | 2021-02-04 11:41:29 -0500 |
---|---|---|
committer | emsr <3dw4rd@verizon.net> | 2021-02-04 14:10:18 -0500 |
commit | 26fd3bf75b52c743b2c94802957c4f7379da7258 (patch) | |
tree | 7bf4cf9af55bfdd9aa442fea4b4943654a275212 /gcc | |
parent | e91f9da57928ab10e2206c64ce490477d3b46ec1 (diff) | |
download | gcc-26fd3bf75b52c743b2c94802957c4f7379da7258.zip gcc-26fd3bf75b52c743b2c94802957c4f7379da7258.tar.gz gcc-26fd3bf75b52c743b2c94802957c4f7379da7258.tar.bz2 |
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.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-family/c-cppbuiltin.c | 2 | ||||
-rw-r--r-- | 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 48dec21..9f993c4 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 94e08a4..4a342e9 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 |