Commit 8e745a17 by Jakub Jelinek

c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.

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

	* g++.dg/cpp1z/feat-cxx1z.C: Test __cpp_structured_bindings macro.

From-SVN: r242395
parent bf166718
2016-11-14 Jakub Jelinek <jakub@redhat.com>
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_structured_bindings.
2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com> 2016-11-14 Prasad Ghangal <prasad.ghangal@gmail.com>
Richard Biener <rguenther@suse.de> Richard Biener <rguenther@suse.de>
......
...@@ -943,6 +943,7 @@ c_cpp_builtins (cpp_reader *pfile) ...@@ -943,6 +943,7 @@ c_cpp_builtins (cpp_reader *pfile)
cpp_define (pfile, "__cpp_deduction_guides=201606"); cpp_define (pfile, "__cpp_deduction_guides=201606");
cpp_define (pfile, "__cpp_noexcept_function_type=201510"); cpp_define (pfile, "__cpp_noexcept_function_type=201510");
cpp_define (pfile, "__cpp_template_auto=201606"); cpp_define (pfile, "__cpp_template_auto=201606");
cpp_define (pfile, "__cpp_structured_bindings=201606");
} }
if (flag_concepts) if (flag_concepts)
cpp_define (pfile, "__cpp_concepts=201507"); cpp_define (pfile, "__cpp_concepts=201507");
......
2016-11-14 Jakub Jelinek <jakub@redhat.com>
* g++.dg/cpp1z/feat-cxx1z.C: Test __cpp_structured_bindings macro.
2016-11-14 Janus Weil <janus@gcc.gnu.org> 2016-11-14 Janus Weil <janus@gcc.gnu.org>
PR fortran/78300 PR fortran/78300
......
...@@ -392,6 +392,12 @@ ...@@ -392,6 +392,12 @@
# error "__cpp_noexcept_function_type != 201510" # error "__cpp_noexcept_function_type != 201510"
#endif #endif
#ifndef __cpp_structured_bindings
# error "__cpp_structured_bindings"
#elif __cpp_structured_bindings != 201606
# error "__cpp_structured_bindings != 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