Implement P1902R1, Missing feature-test macros 2017-2019.
authorJakub Jelinek <jakub@redhat.com>
Fri, 22 Nov 2019 19:55:38 +0000 (20:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 22 Nov 2019 19:55:38 +0000 (20:55 +0100)
commit761df90687c2cda775d86491b54d549bf57e9bc1
tree1b208626f9aea40ce8582b769e0c082c50a1b73d
parent204b0bebee5343b5bd07e2a7be6fd74d6698b937
Implement P1902R1, Missing feature-test macros 2017-2019.

* c-cppbuiltin.c (c_cpp_builtins): Bump __cpp_init_captures
and __cpp_generic_lambdas for -std=c++2a.  Define
__cpp_designated_initializers, __cpp_constexpr_in_decltype and
__cpp_consteval for -std=c++2a.  Remove a FIXME comment about
__cpp_concepts for -std=c++2a.

* g++.dg/cpp1z/feat-cxx1z.C: Only compile with -std=c++17.
* g++.dg/cpp2a/feat-cxx2a.C: Adjust for P1902R1 changes.
* g++.dg/cpp2a/desig15.C: New test.
* g++.dg/cpp2a/lambda-pack-init3.C: New test.
* g++.dg/cpp2a/lambda-generic6.C: New test.
* g++.dg/cpp2a/consteval15.C: New test.

From-SVN: r278628
gcc/c-family/ChangeLog
gcc/c-family/c-cppbuiltin.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/cpp1z/feat-cxx1z.C
gcc/testsuite/g++.dg/cpp2a/consteval15.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/desig15.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/feat-cxx2a.C
gcc/testsuite/g++.dg/cpp2a/lambda-generic6.C [new file with mode: 0644]
gcc/testsuite/g++.dg/cpp2a/lambda-pack-init3.C [new file with mode: 0644]