2016-09-27 Jakub Jelinek <jakub@redhat.com>
+ * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_capture_star_this for
+ -std=c++1z.
+
* c-ada-spec.c (print_ada_declaration): Remove break after return.
2016-09-26 Thomas Preud'homme <thomas.preudhomme@arm.com>
cpp_define (pfile, "__cpp_range_based_for=201603");
cpp_define (pfile, "__cpp_constexpr=201603");
cpp_define (pfile, "__cpp_if_constexpr=201606");
+ cpp_define (pfile, "__cpp_capture_star_this=201603");
}
if (flag_concepts)
/* Use a value smaller than the 201507 specified in
2016-09-27 Jakub Jelinek <jakub@redhat.com>
+ * g++.dg/cpp1z/feat-cxx1z.C: Add __cpp_capture_star_this test.
+
* g++.dg/cpp1z/lambda-this1.C: New test.
* g++.dg/cpp1z/lambda-this2.C: New test.
# error "__cpp_aligned_new != 201606"
#endif
+#ifndef __cpp_capture_star_this
+# error "__cpp_capture_star_this"
+#elif __cpp_capture_star_this != 201603
+# error "__cpp_capture_star_this != 201603"
+#endif
+
#ifdef __has_cpp_attribute
# if ! __has_cpp_attribute(maybe_unused)