diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -594,7 +594,7 @@ Builder.defineMacro("__cpp_designated_initializers", "201707L"); Builder.defineMacro("__cpp_impl_three_way_comparison", "201907L"); //Builder.defineMacro("__cpp_modules", "201907L"); - //Builder.defineMacro("__cpp_using_enum", "201907L"); + Builder.defineMacro("__cpp_using_enum", "201907L"); } // C++2b features. if (LangOpts.CPlusPlus2b) diff --git a/clang/test/Lexer/cxx-features.cpp b/clang/test/Lexer/cxx-features.cpp --- a/clang/test/Lexer/cxx-features.cpp +++ b/clang/test/Lexer/cxx-features.cpp @@ -98,8 +98,7 @@ #error "wrong value for __cpp_modules" #endif -#if check(using_enum, 0, 0, 0, 0, 0, 0) -// FIXME: 201907 in C++20 +#if check(using_enum, 0, 0, 0, 0, 201907, 201907) #error "wrong value for __cpp_using_enum" #endif diff --git a/clang/www/cxx_status.html b/clang/www/cxx_status.html --- a/clang/www/cxx_status.html +++ b/clang/www/cxx_status.html @@ -1205,7 +1205,7 @@