gcc/libstdc++-v3/testsuite/20_util
Jason Merrill d02f620dc0 re PR c++/20332 (poor diagnostic when bind non lvalue to a reference for default arguments)
PR c++/20332
	PR c++/21631
	* call.c (reference_binding): Treat lvalue/rvalue mismatch and
	dropped cv-quals as a bad conversion.
	(convert_like_real) [ck_ref_bind]: Explain them.
	(compare_ics): Check badness before stripping reference
	bindings.  Handle comparing bad reference bindings.
	* typeck.c (comp_cv_qualification): Add overload that just takes
	integers.
	* cp-tree.h: Declare it.

From-SVN: r210436
2014-05-14 12:48:07 -04:00
..
add_const Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
add_cv Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
add_lvalue_reference Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
add_pointer Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
add_rvalue_reference Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
add_volatile Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
addressof Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
aligned_storage Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
alignment_of Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
allocator Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
allocator_traits alloc_traits.h (allocator_traits::_S_allocate): Do not use varargs when argument could be non-POD. 2014-01-29 14:57:35 +00:00
auto_ptr call.c (struct conversion_info): Rename 'from_type' to 'from'. 2014-05-14 12:47:54 -04:00
bad_function_call Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
bind re PR libstdc++/60497 (unique_ptr<T> tries to complete its type T even though it's not required to be a complete type) 2014-05-13 18:22:08 +01:00
common_type/requirements Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
conditional/requirements Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
decay/requirements Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
declval/requirements Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
default_delete Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
duration Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
duration_cast Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
enable_if/requirements Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
enable_shared_from_this Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
exchange Fix testsuite bugs. 2014-04-07 19:40:18 +01:00
extent Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
forward re PR c++/20332 (poor diagnostic when bind non lvalue to a reference for default arguments) 2014-05-14 12:48:07 -04:00
function re PR libstdc++/60594 (std::function of a type with a declared (but not defined) return type fails to compile) 2014-04-15 16:25:52 +01:00
function_objects Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
has_trivial_copy_assign Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
has_trivial_copy_constructor Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
has_trivial_default_constructor Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
has_virtual_destructor Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
hash Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
headers Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
integer_sequence Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
integral_constant Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_abstract Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_arithmetic Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_array Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_assignable Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_base_of Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_class Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_compound Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_const Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_constructible Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_convertible Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_copy_assignable Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_copy_constructible Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_default_constructible Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_destructible Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_empty Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_enum Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_floating_point Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_function Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_fundamental Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_integral Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_literal_type Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_lvalue_reference Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_member_function_pointer Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_member_object_pointer Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_member_pointer Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_move_assignable Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_move_constructible Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_nothrow_assignable Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_nothrow_constructible Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_nothrow_copy_assignable Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_nothrow_copy_constructible Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_nothrow_default_constructible Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_nothrow_destructible Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_nothrow_move_assignable Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_nothrow_move_constructible Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_null_pointer Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_object Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_pod Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_pointer Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_polymorphic Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_reference Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_rvalue_reference Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_same Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_scalar Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_signed Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_standard_layout Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_trivial Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_trivially_destructible Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_union Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_unsigned Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_void Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
is_volatile Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
make_signed/requirements Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
make_unsigned/requirements Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
move Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
move_if_noexcept Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
owner_less Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
pair call.c (struct conversion_info): Rename 'from_type' to 'from'. 2014-05-14 12:47:54 -04:00
pointer_traits Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
rank Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
ratio Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
raw_storage_iterator/requirements Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
reference_wrapper Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
remove_all_extents Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
remove_const Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
remove_cv Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
remove_extent Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
remove_pointer Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
remove_reference Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
remove_volatile Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
result_of Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
scoped_allocator Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
shared_ptr call.c (struct conversion_info): Rename 'from_type' to 'from'. 2014-05-14 12:47:54 -04:00
specialized_algorithms Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
steady_clock Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
system_clock Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
time_point Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
time_point_cast Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
tuple re PR libstdc++/60497 (unique_ptr<T> tries to complete its type T even though it's not required to be a complete type) 2014-05-13 12:18:01 +01:00
typeindex Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
underlying_type/requirements Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
unique_ptr call.c (struct conversion_info): Rename 'from_type' to 'from'. 2014-05-14 12:47:54 -04:00
uses_allocator Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
weak_ptr call.c (struct conversion_info): Rename 'from_type' to 'from'. 2014-05-14 12:47:54 -04:00
rel_ops.cc Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00
temporary_buffer.cc Update copyright years in libstdc++-v3/ 2014-01-02 22:30:10 +00:00