Jonathan Wakely
94895bd98d
PR libstdc++/80939 Remove unmeetable constexpr specifiers
...
PR libstdc++/80939
* include/std/variant (__erased_ctor, __erased_assign, __erased_swap)
(__erased_hash): Remove constexpr specifier and qualify calls to
__ref_cast.
(__erased_dtor): Remove constexpr specifier and use _Destroy.
From-SVN: r248881
2017-06-05 17:49:04 +01:00
Jonathan Wakely
6c24177862
Optimize std::advance for single increments
...
* include/bits/stl_iterator_base_funcs.h
(__advance<_RandomAccessIterator, _Distance>): Optimize for next/prev
cases where incrementing or decrementing a single step.
From-SVN: r248875
2017-06-05 11:34:13 +01:00
Jonathan Wakely
d08606ce6c
Add noexcept to shared_ptr owner comparisons (LWG 2873)
...
* include/bits/shared_ptr_base.h (__shared_ptr::owner_before)
(__weak_ptr::owner_before, _Sp_owner_less::operator()): Add noexcept
specifiers as per LWG 2873 and LWG 2942.
* testsuite/20_util/owner_less/noexcept.cc: New.
* testsuite/20_util/shared_ptr/observers/owner_before.cc: Test
noexcept guarantees.
* testsuite/20_util/weak_ptr/observers/owner_before.cc: Likewise.
From-SVN: r248874
2017-06-05 10:33:19 +01:00
Andreas Schwab
d9850c48a9
baseline_symbols.txt: Update.
...
* config/abi/post/powerpc-linux-gnu/baseline_symbols.txt: Update.
From-SVN: r248854
2017-06-03 09:56:43 +00:00
Eric Botcazou
76052545d2
configure.ac (*-*-linux-android*): Set target_makefile_frag.
...
* configure.ac (*-*-linux-android*): Set target_makefile_frag.
* configure: Regenerate.
config/
* mt-android: New file.
libstdc++-v3/
* src/filesystem/dir.cc (fs::_Dir::advance): Use std::exchange.
From-SVN: r248853
2017-06-03 08:23:22 +00:00
Jonathan Wakely
4c19e432d6
PR libstdc++/80624 satisfy invariant for char_traits<char16_t>::eof()
...
PR libstdc++/80624
* doc/xml/manual/status_cxx2011.xml: Document to_int_type behaviour.
* include/bits/char_traits.h (char_traits<char16_t>::to_int_type):
Transform eof value to U+FFFD.
* testsuite/21_strings/char_traits/requirements/char16_t/eof.cc: New.
* testsuite/27_io/basic_streambuf/sgetc/char16_t/80624.cc: New.
* testsuite/27_io/basic_streambuf/sputc/char16_t/80624.cc: New.
From-SVN: r248843
2017-06-02 19:35:37 +01:00
Jonathan Wakely
ef3985dbd1
Remove libsupc++ makefile targets setting -std=gnu++11 or -std=gnu++14
...
* libsupc++/Makefile.am: Remove custom targets for files that need to
be compiled as C++11 or C++14.
* libsupc++/Makefile.in: Regenerate.
* libsupc++/del_ops.cc: Use pragma to disable -Wsized-deallocation
warnings.
* libsupc++/del_opvs.cc: Likewise.
From-SVN: r248823
2017-06-02 12:49:04 +01:00
Richard Biener
1c26adb74d
re PR libstdc++/80721 (Sorting/Merging of free EH-emergency buffer may wrong or uncomplete)
...
2017-06-02 Richard Biener <rguenther@suse.de>
Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at>
PR libstdc++/80721
* libsupc++/eh_alloc.cc (pool::free): Keep list properly
sorted and add missing freelist item merging cases.
Co-Authored-By: Markus Eisenmann <meisenmann.lba@fh-salzburg.ac.at>
From-SVN: r248816
2017-06-02 08:10:48 +00:00
Rainer Orth
e34fd4dc1c
Fix cross compilation to Solaris
...
(GLIBCXX_CROSSCONFIG): Handle *-solaris* like *-linux* etc.
Remove *-solaris* section.
* configure: Regenerate.
From-SVN: r248791
2017-06-01 13:50:03 +00:00
Jonathan Wakely
046a84762b
PR libstdc++/80893 Fix null dereference in vector<bool>
...
PR libstdc++/80893
* include/bits/stl_bvector.h (vector<bool>::_M_initialize): Avoid
null pointer dereference when size is zero.
* testsuite/23_containers/vector/bool/80893.cc: New.
* testsuite/util/testsuite_allocator.h (PointerBase::PointerBase):
Add non-explicit constructor from nullptr.
(PointerBase::derived() const): Add const-qualified overload.
From-SVN: r248734
2017-05-31 13:41:45 +01:00
Tim Shen
a8127c0cca
re PR c++/80737 (variant<any> as class member resulting to compile errors)
...
PR libstdc++/80737
* include/std/variant(variant::variant): SFINAE on is_same first.
* testsuite/20_util/variant/any.cc: test case.
From-SVN: r248548
2017-05-28 21:27:30 +00:00
Jonathan Wakely
b678436176
Use CHAR_BIT instead of assuming 8 bits
...
* src/c++11/random.cc (random_device::_M_getentropy): Use __CHAR_BIT__
instead of fixed number of bits.
From-SVN: r248428
2017-05-24 20:27:28 +01:00
Andreas Schwab
e1b6749586
baseline_symbols.txt: Update.
...
* config/abi/post/ia64-linux-gnu/baseline_symbols.txt: Update.
* config/abi/post/m68k-linux-gnu/baseline_symbols.txt: Likewise.
From-SVN: r248420
2017-05-24 14:33:07 +00:00
Xi Ruoyao
78aa76df40
PR libstdc++/67578 Implement non-trivial std::random_device::entropy
...
2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
Jonathan Wakely <jwakely@redhat.com>
PR libstdc++/67578
* acinclude.m4: Bump libtool_VERSION.
* config/abi/pre/gnu.ver: Create GLIBCXX_3.4.24 with new symbol.
* config.h.in: Regenerate.
* configure: Regenerate.
* configure.ac: Add test for <linux/random.h>.
* doc/xml/manual/abi.xml: Document new library version.
* include/bits/random.h (random_device::entropy)
[_GLIBCXX_USE_RANDOM_TR1]: Add call to new _M_getentropy member.
(random_device::_M_getentropy): Declare.
* src/c++11/random.cc (random_device::_M_getentropy): Define.
* testsuite/util/testsuite_abi.cc: Add GLIBCXX_3.4.24 to known
versions, and make it the latest version.
Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>
From-SVN: r248374
2017-05-23 17:11:57 +01:00
Xi Ruoyao
5383998a58
PR libstdc++/67214 Avoid signed overflow in num_get::_M_extract_int
...
2017-05-23 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
PR libstdc++/67214
* include/bits/locale_facets.tcc (num_get::_M_extract_int): Add
explicit conversion to avoid signed overflow.
From-SVN: r248362
2017-05-23 11:16:08 +01:00
Jonathan Wakely
f710ca61ba
PR libstdc++/80796 Add new std::search overload for C++17
...
PR libstdc++/80796
* include/bits/stl_algo.h (search): Add new overload for C++17.
* testsuite/25_algorithms/search/searcher.cc: New.
From-SVN: r248266
2017-05-19 13:11:31 +01:00
Jonathan Wakely
747217d179
PR libstdc++/80478 make std::mem_fn work with noexcept functions
...
PR libstdc++/80478
* include/std/functional (_Mem_fn_traits_base): Add specializations
for noexcept member function types.
* testsuite/20_util/function_objects/mem_fn/80478.cc: New test.
From-SVN: r248245
2017-05-18 18:32:06 +01:00
Jonathan Wakely
8985968cc4
Fix typos in libstdc++ manual
...
* doc/xml/manual/policy_data_structures.xml: Fix typo.
* doc/xml/manual/test_policy_data_structures.xml: Likewise.
* doc/html/*: Regenerate.
From-SVN: r248189
2017-05-18 11:26:02 +01:00
Jonathan Wakely
8268fc6022
Update libstdc++ version info in manual
...
* doc/xml/manual/abi.xml: Document latest library versions.
* doc/xml/manual/build_hacking.xml: Document requirement to update
abi.xml when bumping library versions.
* doc/html/*: Regenerate.
From-SVN: r248186
2017-05-18 11:09:32 +01:00
Jonathan Wakely
26bddba34a
Fixes to Doxygen comments in libstdc++ headers
...
* include/bits/refwrap.h: Fix Doxygen warning.
* include/bits/specfun.h: Likewise.
* include/bits/std_function.h: Likewise.
* include/bits/stl_algo.h (set_union, set_intersection)
(set_difference, set_symmetric_difference): Add Doxygen @param tags
for output iterator parameters.
* include/bits/stl_iterator.h (inserter): Add Doxygen @param tag for
iterator parameter.
* include/std/mutex (try_lock, lock): Change Mutex to Lockable in
Doxygen comments.
From-SVN: r248160
2017-05-17 17:02:33 +01:00
Ville Voutilainen
b42cc3ca24
Implement new C++ intrinsics __is_assignable and __is_constructible.
...
c-family/
Implement new C++ intrinsics __is_assignable and __is_constructible.
* c-common.c (__is_assignable, __is_constructible): New.
* c-common.h (RID_IS_ASSIGNABLE, RID_IS_CONSTRUCTIBLE): Likewise.
cp/
PR c++/80654
PR c++/80682
Implement new C++ intrinsics __is_assignable and __is_constructible.
* cp-tree.h (CPTK_IS_ASSIGNABLE, CPTK_IS_CONSTRUCTIBLE): New.
(is_xible): New.
* cxx-pretty-print.c (pp_cxx_trait_expression): Handle
CPTK_IS_ASSIGNABLE and CPTK_IS_CONSTRUCTIBLE.
* method.c (constructible_expr): Set cp_unevaluated.
(is_xible_helper): New.
(is_trivially_xible): Adjust.
(is_xible): New.
* parser.c (cp_parser_primary_expression): Handle
RID_IS_ASSIGNABLE and RID_IS_CONSTRUCTIBLE.
(cp_parser_trait_expr): Likewise.
* semantics.c (trait_expr_value): Handle
CPTK_IS_ASSIGNABLE and CPTK_IS_CONSTRUCTIBLE.
testsuite/
* g++.dg/ext/80654.C: New.
libstdc++-v3/
Implement new C++ intrinsics __is_assignable and __is_constructible.
* include/std/type_traits (__do_is_static_castable_impl): Remove.
(__is_static_castable_impl, __is_static_castable_safe): Likewise.
(__is_static_castable, __do_is_direct_constructible_impl): Likewise.
(__is_direct_constructible_impl): Likewise.
(__is_direct_constructible_new_safe): Likewise.
(__is_base_to_derived_ref, __is_lvalue_to_rvalue_ref): Likewise.
(__is_direct_constructible_ref_cast): Likewise.
(__is_direct_constructible_new, __is_direct_constructible): Likewise.
(__do_is_nary_constructible_impl): Likewise.
(__is_nary_constructible_impl, __is_nary_constructible): Likewise.
(__is_constructible_impl): Likewise.
(is_constructible): Call the intrinsic.
(__is_assignable_helper): Remove.
(is_assignable): Call the intrinsic.
(is_trivially_constructible): Likewise.
(__is_trivially_copy_constructible_impl): New.
(is_trivially_copy_constructible): Use it.
(__is_trivially_move_constructible_impl): New.
(is_trivially_move_constructible): Use it.
(is_trivially_assignable): Call the intrinsic.
(__is_trivially_copy_assignable_impl): New.
(is_trivially_copy_assignable): Use it.
(__is_trivially_move_assignable_impl): New.
(is_trivially_move_assignable): Use it.
(testsuite/20_util/declval/requirements/1_neg.cc): Adjust.
(testsuite/20_util/is_trivially_copy_assignable/value.cc):
Add test for void.
(testsuite/20_util/is_trivially_copy_constructible/value.cc): Likewise.
(testsuite/20_util/is_trivially_move_assignable/value.cc): Likewise.
(testsuite/20_util/is_trivially_move_constructible/value.cc): Likewise.
(testsuite/20_util/make_signed/requirements/typedefs_neg.cc): Adjust.
(testsuite/20_util/make_unsigned/requirements/typedefs_neg.cc):
Likewise.
From-SVN: r248153
2017-05-17 16:54:23 +03:00
Jonathan Wakely
058c785479
Test source_location::current() in default member initializer
...
* testsuite/experimental/source_location/1.cc: Change expected result
for source_location::current() used in default member initializer.
From-SVN: r248111
2017-05-16 15:26:14 +01:00
Jonathan Wakely
2673bae9d2
Implement std::experimental::source_location (N4519)
...
* configure: Regenerate.
* doc/xml/manual/status_cxx2017.xml: Update status table.
* doc/html/*: Regenerate.
* include/Makefile.am: Add new header.
* include/Makefile.in: Regenerate.
* include/experimental/source_location: New header implementing N4519.
* testsuite/experimental/source_location/1.cc: New test.
From-SVN: r248110
2017-05-16 14:37:52 +01:00
Jonathan Wakely
423624979a
Fix forward declaration of std::type_info for versioned-namespace
...
PR libstdc++/80285
* include/bits/shared_ptr_base.h [!__cpp_rtti] (type_info): Declare
outside versioned namespace.
From-SVN: r248109
2017-05-16 14:16:34 +01:00
Jonathan Wakely
ba1a69079f
Regenerate libstdc++-v3/configure for versioned-namespace soname
...
* configure: Regenerate.
From-SVN: r248107
2017-05-16 14:12:16 +01:00
Marc Glisse
2c27a627a3
optional (_Optional_base::_M_get): Check precondition.
...
2017-05-16 Marc Glisse <marc.glisse@inria.fr>
* include/std/optional (_Optional_base::_M_get): Check precondition.
* testsuite/20_util/optional/cons/value_neg.cc: Update line numbers.
From-SVN: r248099
2017-05-16 12:54:16 +00:00
Jonathan Wakely
5f54ae00d0
Add cross-reference for test permutations in libstdc++ manual
...
* doc/xml/manual/appendix_contributing.xml: Link to test docs and
note higher DejaGnu version requirement.
* doc/html/*: Regenerate.
From-SVN: r248092
2017-05-16 11:37:22 +01:00
Jonathan Wakely
ad2b8b37ec
Add cross-reference for BADNAMES in libstdc++ manual
...
* doc/xml/manual/appendix_contributing.xml: Link to the list of bad
identifiers.
* doc/html/*: Regenerate.
From-SVN: r248091
2017-05-16 10:46:21 +01:00
Jonathan Wakely
85c05b5eec
Fix order and types of members in C++17 insert_return_type structs
...
PR libstdc++/80761
* include/bits/node_handle.h (_Node_insert_return): Reorder members.
(tuple_size, tuple_element): Remove partial specializations.
* include/bits/stl_tree.h (_Rb_tree::insert_return_type): Use
const_iterator for std::set.
* testsuite/23_containers/map/modifiers/extract.cc: New.
* testsuite/23_containers/set/modifiers/extract.cc: New.
* testsuite/23_containers/unordered_map/modifiers/extract.cc: New.
* testsuite/23_containers/unordered_set/modifiers/extract.cc: New.
From-SVN: r248062
2017-05-15 14:47:40 +01:00
François Dumont
3838e0c086
Revert revision 247926.
...
From-SVN: r247998
2017-05-12 21:19:39 +00:00
Jonathan Wakely
f859f912e4
PR libstdc++/78939 make tuple_size<cv T> depend on tuple_size<T>
...
PR libstdc++/78939
* include/std/utility (tuple_size<cv T>): Only define partial
specializations when tuple_size<T>::value is valid.
* testsuite/20_util/tuple/78939.cc: New.
* testsuite/20_util/tuple/cv_tuple_size_neg.cc: New.
From-SVN: r247973
2017-05-12 15:43:11 +01:00
François Dumont
fee84d551f
2017-05-11 François Dumont <fdumont@gcc.gnu.org>
...
* include/bits/stl_tree.h [_GLIBCXX_INLINE_VERSION]
(_Rb_tree_impl<>): Remove _Is_pod_comparator
template parameter.
From-SVN: r247929
2017-05-11 20:30:44 +00:00
François Dumont
ea594612f0
2017-05-11 François Dumont <fdumont@gcc.gnu.org>
...
* include/debug/safe_container.h [_GLIBCXX_USE_CXX11_ABI]
(_Safe_container<>): Remove _IsCxx11AllocatorAware template parameter.
* include/debug/string: Adapt.
From-SVN: r247926
2017-05-11 20:03:47 +00:00
François Dumont
dc4dd7f63f
2017-05-11 François Dumont <fdumont@gcc.gnu.org>
...
* include/debug/formatter.h [_GLIBCXX_INLINE_VERSION]
(__gnu_debug::_Error_formatter::_Parameter::_M_print_field): Remove.
(__gnu_debug::_Error_formatter::_Parameter::_M_print_description):
Remove.
(__gnu_debug::_Error_formatter::_M_format_word): Remove.
(__gnu_debug::_Error_formatter::_M_print_word): Remove.
(__gnu_debug::_Error_formatter::_M_print_string): Remove.
(__gnu_debug::_Error_formatter::_M_get_max_length): Remove.
* src/c++11/debug.cc: Adapt.
* config/abi/pre/gnu-versioned-namespace.ver: Adapt.
From-SVN: r247925
2017-05-11 19:49:26 +00:00
Jonathan Wakely
395ec8f30c
Fix ViewCVS URLs in libstdc++ manual
...
* doc/xml/manual/allocator.xml: Fix ViewCVS URLs.
* doc/xml/manual/mt_allocator.xml: Likewise.
* doc/html/*: Regenerate.
From-SVN: r247911
2017-05-11 16:01:10 +01:00
Jonathan Wakely
f8cba3aaae
PR libstdc++/80285 optimize std::make_shared for -fno-rtti
...
PR libstdc++/80285
* include/bits/shared_ptr_base.h (_Sp_make_shared_tag::_S_ti): Define
function to get unique fake std::type_info reference.
(_Sp_counted_ptr_inplace::_M_get_deleter) [!__cpp_rtti]: Compare to
_S_ti() fake reference.
(__shared_ptr(_Sp_make_shared_tag, const Alloc&, Args&&...)): Share
single implementation with or without RTTI enable.
[!__cpp_rtti]: Pass fake reference to _M_get_deleter.
* testsuite/20_util/shared_ptr/creation/alloc.cc: Change expected
allocation and deallocation counts.
* testsuite/20_util/shared_ptr/creation/single_allocation.cc: New.
* testsuite/20_util/shared_ptr/creation/single_allocation_no_rtti.cc:
New.
From-SVN: r247905
2017-05-11 14:21:07 +01:00
François Dumont
87c7063d68
Bump version namespace.
...
2017-05-10 François Dumont <fdumont@gcc.gnu.org>
Bump version namespace.
* config/abi/pre/gnu-versioned-namespace.ver: Bump version namespace
from __7 to __8. Bump GLIBCXX_7.0 to GLIBCXX_8.0.
* acinclude.m4 (libtool_VERSION): Bump to 8:0:0.
* include/bits/c++config: Adapt.
* include/bits/regex.h: Adapt.
* include/experimental/bits/fs_fwd.h: Adapt.
* include/experimental/bits/lfts_config.h: Adapt.
* include/std/variant: Adapt.
* python/libstdcxx/v6/printers.py: Adapt.
* testsuite/libstdc++-prettyprinters/48362.cc: Adapt.
* include/bits/stl_tree.h (_Rb_tree_impl<>): Remove _Is_pod_comparator
template parameter when version namespace is active.
From-SVN: r247858
2017-05-10 20:40:28 +00:00
François Dumont
e5795ce493
stl_algobase.h (std::__iter_swap<false>): Remove _GLIBCXX_MOVE usage.
...
2017-05-10 François Dumont <fdumont@gcc.gnu.org>
* include/bits/stl_algobase.h (std::__iter_swap<false>): Remove
_GLIBCXX_MOVE usage.
From-SVN: r247855
2017-05-10 20:05:26 +00:00
Jason Merrill
e91c2cac34
* testsuite/24_iterators/container_access.cc (test03): Make il3 static.
...
From-SVN: r247799
2017-05-09 11:11:19 -04:00
Jonathan Wakely
9057edd30c
Tweak static assertions in std::optional
...
* include/std/optional: Use a separate static_assert per condition.
* testsuite/20_util/optional/cons/value_neg.cc: Update dg-error line
numbers.
From-SVN: r247748
2017-05-08 18:13:38 +01:00
Jonathan Wakely
6d430cbd12
Clarify mt_allocator documentation w.r.t deallocation
...
* doc/xml/manual/mt_allocator.xml: Clarify deallocation behaviour.
* doc/html/*: Regenerate.
From-SVN: r247742
2017-05-08 16:09:08 +01:00
Hugo Beauzée-Luyssen
8a20a3c76f
re PR bootstrap/69506 (check-in 232454 seems to cause problems with cygwin builds)
...
2017-05-02 Hugo Beauzée-Luyssen <hugo@beauzee.fr>
PR libstdc++/69506
* config/os/mingw32-w64/os_defines.h (_GLIBCXX_USE_WEAK_REF): Define.
From-SVN: r247502
2017-05-02 15:04:39 +00:00
François Dumont
30fc569c18
48362.cc: Replace a regexp-test by a note-test.
...
2017-04-29 François Dumont <fdumont@gcc.gnu.org>
* testsuite/libstdc++-prettyprinters/48362.cc: Replace a regexp-test
by a note-test.
From-SVN: r247411
2017-04-29 19:35:28 +00:00
Jonathan Wakely
b26f45f069
PR libstdc++/80553 don't allow destroying non-destructible types
...
PR libstdc++/80553
* include/bits/stl_construct.h (_Destroy, _Destroy_n): Add static
assertions to ensure type is destructible.
(destroy_at, destroy, destroy_n): Move from stl_uninitialized.h.
* include/bits/stl_uninitialized.h (destroy_at, destroy, destroy_n):
Move to stl_construct.h.
* testsuite/20_util/specialized_algorithms/memory_management_tools/
destroy_neg.cc: New test.
* testsuite/23_containers/vector/cons/destructible_neg.cc: New test.
From-SVN: r247379
2017-04-28 13:56:53 +01:00
Jonathan Wakely
38233afdcf
Remove superfluous "" in dg-error.
...
* testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
superfluous "" in dg-error.
From-SVN: r247378
2017-04-28 13:56:38 +01:00
Tom de Vries
f166beaf42
Remove superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus)
...
find $(find -type d -name testsuite) -type f \
| xargs sed -ri \
's#(dg-(error|warning|message|bogus).*) \{ target \*-\*-\* \} \}#\1 }#'
2017-04-28 Tom de Vries <tom@codesourcery.com>
* g++.dg/parse/error2.C: Remove superfluous '{ target *-*-* }' in
dg-(error|warning|message|bogus).
* g++.dg/parse/parameter-declaration-1.C: Same.
* g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C: Same.
* gcc.dg/Wpointer-sign-Wall.c: Same.
* gcc.dg/Wpointer-sign-pedantic.c: Same.
* gcc.dg/cpp/19990413-1.c: Same.
* gcc.dg/dg-test-1.c: Same.
* gcc.dg/empty-source-2.c: Same.
* gcc.dg/empty-source-3.c: Same.
* gcc.dg/format/c99-printf-1.c: Same.
* gcc.dg/format/c99-scanf-1.c: Same.
* gcc.dg/label-decl-2.c: Same.
* gcc.dg/m-un-2.c: Same.
* gcc.dg/uninit-pr20644-O0.c: Same.
* gfortran.dg/pr70006.f90: Same.
* obj-c++.dg/fsf-package-0.m: Same.
* testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc: Remove
superfluous '{ target *-*-* }' in dg-(error|warning|message|bogus).
From-SVN: r247364
2017-04-28 07:26:32 +00:00
Jonathan Wakely
4ca4927ac6
Remove reundant const-qualification from cast targets
...
* include/ext/pb_ds/detail/list_update_map_/iterators_fn_imps.hpp
(PB_DS_CLASS_C_DEC::end()): Remove redundant const in cast type.
* testsuite/util/testsuite_rng.h (twister_rand_gen::get_prob()):
Likewise.
From-SVN: r247346
2017-04-27 16:17:05 +01:00
Jonathan Wakely
9425300b41
Improve tests for vector and deque move-assignment
...
* testsuite/23_containers/deque/allocator/move_assign-2.cc: Improve
comment. Ensure first test works because allocator type propagates and
not because is_always_equal is true.
* testsuite/23_containers/vector/52591.cc: Likewise. Restore original
testcase that instantiates the move-assignment operator.
From-SVN: r247284
2017-04-26 20:25:30 +01:00
Jonathan Wakely
957221f551
PR libstdc++/80506 fix constant used in condition
...
PR libstdc++/80506
* include/bits/random.tcc (gamma_distribution::operator()): Fix magic
number used in loop condition.
From-SVN: r247099
2017-04-24 14:43:19 +01:00
Jonathan Wakely
6e2e575a03
PR libstdc++/80504 qualify calls to avoid ADL
...
PR libstdc++/80504
* include/bits/refwrap.h (ref, cref): Qualify calls.
* testsuite/20_util/reference_wrapper/80504.cc: New test.
From-SVN: r247094
2017-04-24 12:40:07 +01:00