diff options
-rw-r--r-- | clang/lib/Frontend/InitPreprocessor.cpp | 1 | ||||
-rw-r--r-- | clang/test/Lexer/cxx-features.cpp | 7 | ||||
-rw-r--r-- | clang/www/cxx_status.html | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/clang/lib/Frontend/InitPreprocessor.cpp b/clang/lib/Frontend/InitPreprocessor.cpp index 47881b10b45..d8102cc80a3 100644 --- a/clang/lib/Frontend/InitPreprocessor.cpp +++ b/clang/lib/Frontend/InitPreprocessor.cpp @@ -517,6 +517,7 @@ static void InitializeCPlusPlusFeatureTestMacros(const LangOptions &LangOpts, Builder.defineMacro("__cpp_namespace_attributes", "201411"); Builder.defineMacro("__cpp_enumerator_attributes", "201411"); Builder.defineMacro("__cpp_nested_namespace_definitions", "201411"); + Builder.defineMacro("__cpp_variadic_using", "201611"); Builder.defineMacro("__cpp_aggregate_bases", "201603"); Builder.defineMacro("__cpp_nontype_template_args", "201411"); Builder.defineMacro("__cpp_fold_expressions", "201603"); diff --git a/clang/test/Lexer/cxx-features.cpp b/clang/test/Lexer/cxx-features.cpp index d38541f4db9..8f1e286a294 100644 --- a/clang/test/Lexer/cxx-features.cpp +++ b/clang/test/Lexer/cxx-features.cpp @@ -22,6 +22,10 @@ // --- C++17 features --- +#if check(variadic_using, 0, 0, 0, 201611) // FIXME: provisional name +#error "wrong value for __cpp_variadic_using" +#endif + #if check(hex_float, 0, 0, 0, 201603) #error "wrong value for __cpp_hex_float" #endif @@ -78,8 +82,7 @@ #error "wrong value for __cpp_aggregate_bases" #endif -// FIXME: structured_bindings / decomposition_decl name not yet settled, and -// Clang implementation is incomplete. +// FIXME: structured_bindings / decomposition_decl name not yet settled #if check(nontype_template_args, 0, 0, 0, 201411) #error "wrong value for __cpp_nontype_template_args" diff --git a/clang/www/cxx_status.html b/clang/www/cxx_status.html index 2e1156682a7..4a9236a0146 100644 --- a/clang/www/cxx_status.html +++ b/clang/www/cxx_status.html @@ -743,7 +743,7 @@ as the draft C++1z standard evolves. <tr> <td>Pack expansions in <em>using-declarations</em></td> <td><a href="http://wg21.link/p0195r2">P0195R2</a></td> - <td class="none" align="center">No</td> + <td class="svn" align="center">SVN</td> </tr> </table> |