diff options
author | Jason Merrill <jason@redhat.com> | 2020-12-10 11:21:50 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2020-12-10 15:36:09 -0500 |
commit | 445430e16bd08ade34637d2346ded40dd49de508 (patch) | |
tree | de019cb941d8e7d77fdbf479008ecc857fe6969d /libcpp | |
parent | 96a5c483afbe0cb3fb037641bf2b5658531d9255 (diff) | |
download | gcc-445430e16bd08ade34637d2346ded40dd49de508.zip gcc-445430e16bd08ade34637d2346ded40dd49de508.tar.gz gcc-445430e16bd08ade34637d2346ded40dd49de508.tar.bz2 |
c++: Update value of __cplusplus for C++20.
It's past time to update this macro to the specified value for C++20.
libcpp/ChangeLog:
* init.c (cpp_init_builtins): Update __cplusplus for C++20.
Diffstat (limited to 'libcpp')
-rw-r--r-- | libcpp/init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libcpp/init.c b/libcpp/init.c index f77dc26..7987798 100644 --- a/libcpp/init.c +++ b/libcpp/init.c @@ -542,7 +542,7 @@ cpp_init_builtins (cpp_reader *pfile, int hosted) { if (CPP_OPTION (pfile, lang) == CLK_CXX20 || CPP_OPTION (pfile, lang) == CLK_GNUCXX20) - _cpp_define_builtin (pfile, "__cplusplus 201709L"); + _cpp_define_builtin (pfile, "__cplusplus 202002L"); else if (CPP_OPTION (pfile, lang) == CLK_CXX17 || CPP_OPTION (pfile, lang) == CLK_GNUCXX17) _cpp_define_builtin (pfile, "__cplusplus 201703L"); |