c++: Add feature test macro for C++20 using enum.
authorJason Merrill <jason@redhat.com>
Fri, 13 Nov 2020 19:15:46 +0000 (14:15 -0500)
committerJason Merrill <jason@redhat.com>
Fri, 13 Nov 2020 21:34:06 +0000 (16:34 -0500)
commitd4a3152d3f3f62ccd614df5da6c3c0d2f6e5fa0d
treecdde97bc21855d8130c93d95e643655f81fa298a
parent1a90e99fa2f2423a195301adca060dccc3d0755e
c++: Add feature test macro for C++20 using enum.

Missing piece from the 'using enum' implementation patch.

gcc/c-family/ChangeLog:

* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_using_enum.

gcc/testsuite/ChangeLog:

* g++.dg/cpp2a/feat-cxx2a.C: Check it.
gcc/c-family/c-cppbuiltin.c
gcc/testsuite/g++.dg/cpp2a/feat-cxx2a.C