* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
From-SVN: r244283
This commit is contained in:
parent
2af5cb5013
commit
e363df3fd3
3 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2017-01-10 Jason Merrill <jason@redhat.com>
|
||||
|
||||
Implement P0195R2, C++17 variadic using.
|
||||
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_variadic_using.
|
||||
|
||||
2017-01-09 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR translation/79019
|
||||
|
|
|
@ -970,6 +970,7 @@ c_cpp_builtins (cpp_reader *pfile)
|
|||
cpp_define (pfile, "__cpp_noexcept_function_type=201510");
|
||||
cpp_define (pfile, "__cpp_template_auto=201606");
|
||||
cpp_define (pfile, "__cpp_structured_bindings=201606");
|
||||
cpp_define (pfile, "__cpp_variadic_using=201611");
|
||||
}
|
||||
if (flag_concepts)
|
||||
cpp_define (pfile, "__cpp_concepts=201507");
|
||||
|
|
|
@ -404,6 +404,12 @@
|
|||
# error "__cpp_template_template_args != 201611"
|
||||
#endif
|
||||
|
||||
#ifndef __cpp_variadic_using
|
||||
# error "__cpp_variadic_using"
|
||||
#elif __cpp_variadic_using != 201611
|
||||
# error "__cpp_variadic_using != 201611"
|
||||
#endif
|
||||
|
||||
#ifdef __has_cpp_attribute
|
||||
|
||||
# if ! __has_cpp_attribute(maybe_unused)
|
||||
|
|
Loading…
Add table
Reference in a new issue