diff options
author | Jason Merrill <jason@redhat.com> | 2022-02-09 00:30:49 -0500 |
---|---|---|
committer | Jason Merrill <jason@redhat.com> | 2022-02-09 09:41:01 -0500 |
commit | d80f2248c5962318c77624a0eab05b81c59add1b (patch) | |
tree | 066bbf24549f31c509596d0be29bf89e3f4ba461 /gcc/c-family/c-cppbuiltin.cc | |
parent | 2d3c477599b02b06e338acd5f5098ee7a3fe6176 (diff) | |
download | gcc-d80f2248c5962318c77624a0eab05b81c59add1b.zip gcc-d80f2248c5962318c77624a0eab05b81c59add1b.tar.gz gcc-d80f2248c5962318c77624a0eab05b81c59add1b.tar.bz2 |
c++: P2493 feature test macro updates
The C++ committee just updated the values of these macros to reflect some
late C++20 papers that we implement but others don't yet; see PR103891.
gcc/c-family/ChangeLog:
* c-cppbuiltin.cc (c_cpp_builtins): Update values
of __cpp_constexpr and __cpp_concepts for C++20.
gcc/testsuite/ChangeLog:
* g++.dg/cpp23/feat-cxx2b.C: Adjust.
* g++.dg/cpp2a/feat-cxx2a.C: Adjust.
Diffstat (limited to 'gcc/c-family/c-cppbuiltin.cc')
-rw-r--r-- | gcc/c-family/c-cppbuiltin.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/c-family/c-cppbuiltin.cc b/gcc/c-family/c-cppbuiltin.cc index 528211c..4672ae8 100644 --- a/gcc/c-family/c-cppbuiltin.cc +++ b/gcc/c-family/c-cppbuiltin.cc @@ -1059,7 +1059,7 @@ c_cpp_builtins (cpp_reader *pfile) cpp_define (pfile, "__cpp_generic_lambdas=201707L"); cpp_define (pfile, "__cpp_designated_initializers=201707L"); if (cxx_dialect <= cxx20) - cpp_define (pfile, "__cpp_constexpr=201907L"); + cpp_define (pfile, "__cpp_constexpr=202002L"); cpp_define (pfile, "__cpp_constexpr_in_decltype=201711L"); cpp_define (pfile, "__cpp_conditional_explicit=201806L"); cpp_define (pfile, "__cpp_consteval=201811L"); @@ -1084,7 +1084,7 @@ c_cpp_builtins (cpp_reader *pfile) if (flag_concepts) { if (cxx_dialect >= cxx20) - cpp_define (pfile, "__cpp_concepts=201907L"); + cpp_define (pfile, "__cpp_concepts=202002L"); else cpp_define (pfile, "__cpp_concepts=201507L"); } |