diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-08 13:22:14 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-07-08 13:22:14 +0000 |
commit | 0026dce2b9b0e7db6e8ac81ac56a8965ae8dacd8 (patch) | |
tree | 39966e01620e42a89eab8aa10b53ba48ee8e0021 /libstdc++-v3 | |
parent | 6c79a7f9f7bc512125f1da45735e3eef8a29b9ca (diff) | |
download | gcc-0026dce2b9b0e7db6e8ac81ac56a8965ae8dacd8.tar.gz |
* include/bits/allocated_ptr.h (__allocated_ptr::operator=): Add
missing return.
* include/experimental/any: Remove unused header.
* include/std/functional (_Maybe_wrap_member_pointer): Fix comments.
* testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error.
* testsuite/util/testsuite_regex.h: Move include guard.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@212360 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r-- | libstdc++-v3/ChangeLog | 9 | ||||
-rw-r--r-- | libstdc++-v3/include/bits/allocated_ptr.h | 7 | ||||
-rw-r--r-- | libstdc++-v3/include/experimental/any | 1 | ||||
-rw-r--r-- | libstdc++-v3/include/std/functional | 6 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/testsuite/util/testsuite_regex.h | 6 |
6 files changed, 22 insertions, 9 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 41e6ddeeb44..7e03e7953c6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,12 @@ +2014-07-08 Jonathan Wakely <jwakely@redhat.com> + + * include/bits/allocated_ptr.h (__allocated_ptr::operator=): Add + missing return. + * include/experimental/any: Remove unused header. + * include/std/functional (_Maybe_wrap_member_pointer): Fix comments. + * testsuite/experimental/any/misc/any_cast_neg.cc: Adjust dg-error. + * testsuite/util/testsuite_regex.h: Move include guard. + 2014-07-01 Tim Shen <timshen@google.com> PR libstdc++/61601 diff --git a/libstdc++-v3/include/bits/allocated_ptr.h b/libstdc++-v3/include/bits/allocated_ptr.h index 5cdce20d6b9..4ae3836675e 100644 --- a/libstdc++-v3/include/bits/allocated_ptr.h +++ b/libstdc++-v3/include/bits/allocated_ptr.h @@ -73,7 +73,12 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION } /// Release ownership of the owned pointer - __allocated_ptr& operator=(std::nullptr_t) noexcept { _M_ptr = nullptr; } + __allocated_ptr& + operator=(std::nullptr_t) noexcept + { + _M_ptr = nullptr; + return *this; + } /// Get the address that the owned pointer refers to. value_type* get() { return _S_raw_ptr(_M_ptr); } diff --git a/libstdc++-v3/include/experimental/any b/libstdc++-v3/include/experimental/any index 8f6e372c3b1..a69d0067fd9 100644 --- a/libstdc++-v3/include/experimental/any +++ b/libstdc++-v3/include/experimental/any @@ -41,7 +41,6 @@ #include <type_traits> #include <bits/alloc_traits.h> #include <bits/uses_allocator.h> -#include <bits/functexcept.h> namespace std _GLIBCXX_VISIBILITY(default) { diff --git a/libstdc++-v3/include/std/functional b/libstdc++-v3/include/std/functional index e677c248d27..15247bf41d9 100644 --- a/libstdc++-v3/include/std/functional +++ b/libstdc++-v3/include/std/functional @@ -1184,8 +1184,8 @@ _GLIBCXX_HAS_NESTED_TYPE(result_type) /** * Maps member pointers into instances of _Mem_fn but leaves all - * other function objects untouched. Used by tr1::bind(). The - * primary template handles the non--member-pointer case. + * other function objects untouched. Used by std::bind(). The + * primary template handles the non-member-pointer case. */ template<typename _Tp> struct _Maybe_wrap_member_pointer @@ -1203,7 +1203,7 @@ _GLIBCXX_HAS_NESTED_TYPE(result_type) /** * Maps member pointers into instances of _Mem_fn but leaves all - * other function objects untouched. Used by tr1::bind(). This + * other function objects untouched. Used by std::bind(). This * partial specialization handles the member pointer case. */ template<typename _Tp, typename _Class> diff --git a/libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc b/libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc index b93b0396640..9a12ec37624 100644 --- a/libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc +++ b/libstdc++-v3/testsuite/experimental/any/misc/any_cast_neg.cc @@ -26,5 +26,5 @@ void test01() using std::experimental::any_cast; const any y(1); - any_cast<int&>(y); // { dg-error "qualifiers" "" { target { *-*-* } } 381 } + any_cast<int&>(y); // { dg-error "qualifiers" "" { target { *-*-* } } 380 } } diff --git a/libstdc++-v3/testsuite/util/testsuite_regex.h b/libstdc++-v3/testsuite/util/testsuite_regex.h index c2031e90a23..da209414094 100644 --- a/libstdc++-v3/testsuite/util/testsuite_regex.h +++ b/libstdc++-v3/testsuite/util/testsuite_regex.h @@ -19,13 +19,13 @@ // <http://www.gnu.org/licenses/>. // +#ifndef _TESTSUITE_REGEX_H +#define _TESTSUITE_REGEX_H 1 + #include <regex> #include <stdexcept> #include <iostream> -#ifndef _TESTSUITE_REGEX_H -#define _TESTSUITE_REGEX_H 1 - namespace __gnu_test { // Test on a compilation of simple expressions, throw regex_error on error. |