Commit 452df4a4 by Jason Merrill Committed by Jason Merrill

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

From-SVN: r239340
parent 99f9d4b1
2016-08-10 Jason Merrill <jason@redhat.com>
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_if_constexpr.
2016-08-09 Jason Merrill <jason@redhat.com> 2016-08-09 Jason Merrill <jason@redhat.com>
* c-common.c (c_common_attribute_table): vector_size affects type * c-common.c (c_common_attribute_table): vector_size affects type
......
...@@ -882,6 +882,7 @@ c_cpp_builtins (cpp_reader *pfile) ...@@ -882,6 +882,7 @@ c_cpp_builtins (cpp_reader *pfile)
cpp_define (pfile, "__cpp_nontype_template_args=201411"); cpp_define (pfile, "__cpp_nontype_template_args=201411");
cpp_define (pfile, "__cpp_range_based_for=201603"); cpp_define (pfile, "__cpp_range_based_for=201603");
cpp_define (pfile, "__cpp_constexpr=201603"); cpp_define (pfile, "__cpp_constexpr=201603");
cpp_define (pfile, "__cpp_if_constexpr=201606");
} }
if (flag_concepts) if (flag_concepts)
/* Use a value smaller than the 201507 specified in /* Use a value smaller than the 201507 specified in
......
...@@ -344,6 +344,12 @@ ...@@ -344,6 +344,12 @@
# error "__cpp_hex_float != 201603" # error "__cpp_hex_float != 201603"
#endif #endif
#ifndef __cpp_if_constexpr
# error "__cpp_if_constexpr"
#elif __cpp_if_constexpr != 201606
# error "__cpp_if_constexpr != 201606"
#endif
#ifdef __has_cpp_attribute #ifdef __has_cpp_attribute
# if ! __has_cpp_attribute(maybe_unused) # if ! __has_cpp_attribute(maybe_unused)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment