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
This commit is contained in:
Jakub Jelinek 2016-11-14 20:00:32 +01:00
parent bf166718a9
commit 8e745a1709
7 changed files with 116 additions and 101 deletions

View File

@ -1,3 +1,7 @@
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>
Richard Biener <rguenther@suse.de>

View File

@ -943,6 +943,7 @@ c_cpp_builtins (cpp_reader *pfile)
cpp_define (pfile, "__cpp_deduction_guides=201606");
cpp_define (pfile, "__cpp_noexcept_function_type=201510");
cpp_define (pfile, "__cpp_template_auto=201606");
cpp_define (pfile, "__cpp_structured_bindings=201606");
}
if (flag_concepts)
cpp_define (pfile, "__cpp_concepts=201507");

View File

@ -1,3 +1,7 @@
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>
PR fortran/78300

View File

@ -392,6 +392,12 @@
# error "__cpp_noexcept_function_type != 201510"
#endif
#ifndef __cpp_structured_bindings
# error "__cpp_structured_bindings"
#elif __cpp_structured_bindings != 201606
# error "__cpp_structured_bindings != 201606"
#endif
#ifdef __has_cpp_attribute
# if ! __has_cpp_attribute(maybe_unused)