gcc/libstdc++-v3/testsuite/20_util/tuple
Marek Polacek b5ff4f5c0d Implement P0892R2, explicit(bool).
* c-cppbuiltin.c (c_cpp_builtins): Define __cpp_explicit_bool.

	* call.c (add_template_candidate_real): Return if the declaration is
	explicit and we're only looking for non-converting constructor.
	* cp-tree.h (lang_decl_fn): Add has_dependent_explicit_spec_p bit.
	(DECL_HAS_DEPENDENT_EXPLICIT_SPEC_P): New macro.
	(cp_decl_specifier_seq): Add explicit_specifier field.
	(build_explicit_specifier, store_explicit_specifier): Declare.
	* decl.c (grokdeclarator): Call store_explicit_specifier.
	(build_explicit_specifier): New function.
	* parser.c (cp_parser_function_specifier_opt) <case RID_EXPLICIT>:
	Parse C++20 explicit(bool).
	* pt.c (store_explicit_specifier, lookup_explicit_specifier): New.
	(tsubst_function_decl): Handle explicit(dependent-expr).

	* g++.dg/cpp2a/explicit1.C: New test.
	* g++.dg/cpp2a/explicit10.C: New test.
	* g++.dg/cpp2a/explicit11.C: New test.
	* g++.dg/cpp2a/explicit12.C: New test.
	* g++.dg/cpp2a/explicit13.C: New test.
	* g++.dg/cpp2a/explicit2.C: New test.
	* g++.dg/cpp2a/explicit3.C: New test.
	* g++.dg/cpp2a/explicit4.C: New test.
	* g++.dg/cpp2a/explicit5.C: New test.
	* g++.dg/cpp2a/explicit6.C: New test.
	* g++.dg/cpp2a/explicit7.C: New test.
	* g++.dg/cpp2a/explicit8.C: New test.
	* g++.dg/cpp2a/explicit9.C: New test.

	* testsuite/20_util/any/cons/explicit.cc: Adjust dg-error.
	* testsuite/20_util/pair/cons/explicit_construct.cc: Likewise.
	* testsuite/20_util/tuple/cons/explicit_construct.cc: Likewise.

From-SVN: r265641
2018-10-30 19:59:41 +00:00
..
apply Update copyright years. 2018-01-03 11:03:58 +01:00
comparison_operators Update copyright years. 2018-01-03 11:03:58 +01:00
cons Implement P0892R2, explicit(bool). 2018-10-30 19:59:41 +00:00
creation_functions Update copyright years. 2018-01-03 11:03:58 +01:00
element_access PR libstdc++/86963 Implement LWG 2729 constraints on tuple assignment 2018-08-17 18:52:49 +01:00
make_from_tuple Update copyright years. 2018-01-03 11:03:58 +01:00
requirements Update copyright years. 2018-01-03 11:03:58 +01:00
48476.cc Update copyright years. 2018-01-03 11:03:58 +01:00
51365.cc Update copyright years. 2018-01-03 11:03:58 +01:00
53648.cc Update copyright years. 2018-01-03 11:03:58 +01:00
56785.cc Update copyright years. 2018-01-03 11:03:58 +01:00
60497.cc Update copyright years. 2018-01-03 11:03:58 +01:00
61947.cc Update copyright years. 2018-01-03 11:03:58 +01:00
67844.cc Update copyright years. 2018-01-03 11:03:58 +01:00
77395.cc Update copyright years. 2018-01-03 11:03:58 +01:00
77802.cc Update copyright years. 2018-01-03 11:03:58 +01:00
78939.cc Update copyright years. 2018-01-03 11:03:58 +01:00
cv_tuple_element.cc Update copyright years. 2018-01-03 11:03:58 +01:00
cv_tuple_size.cc Update copyright years. 2018-01-03 11:03:58 +01:00
cv_tuple_size_neg.cc Update copyright years. 2018-01-03 11:03:58 +01:00
dr2729.cc PR libstdc++/86963 Implement LWG 2729 constraints on tuple assignment 2018-08-17 18:52:49 +01:00
moveable.cc Update copyright years. 2018-01-03 11:03:58 +01:00
moveable2.cc Update copyright years. 2018-01-03 11:03:58 +01:00
noexcept_move_assign.cc Update copyright years. 2018-01-03 11:03:58 +01:00
noexcept_swap.cc Update copyright years. 2018-01-03 11:03:58 +01:00
swap.cc Update copyright years. 2018-01-03 11:03:58 +01:00
swap_cxx17.cc Update copyright years. 2018-01-03 11:03:58 +01:00
tuple_element.cc Update copyright years. 2018-01-03 11:03:58 +01:00
tuple_element_t.cc Define __cpp_lib_tuple_element_t in <tuple> not <utility> 2018-06-14 15:01:29 +01:00
tuple_size.cc Update copyright years. 2018-01-03 11:03:58 +01:00
tuple_size_v.cc Update copyright years. 2018-01-03 11:03:58 +01:00