From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id 277B13858C50; Sat, 23 Jul 2022 11:30:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 277B13858C50 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r10-10910] libstdc++: Fix inconsistent noexcept-specific for valarray begin/end X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/releases/gcc-10 X-Git-Oldrev: 4182b95aa61b5bb97058b1f11ed3ffe97eb0c3df X-Git-Newrev: 32bbf76e4345a7961445b86a7cfccffa8a287fc1 Message-Id: <20220723113009.277B13858C50@sourceware.org> Date: Sat, 23 Jul 2022 11:30:09 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 23 Jul 2022 11:30:09 -0000 https://gcc.gnu.org/g:32bbf76e4345a7961445b86a7cfccffa8a287fc1 commit r10-10910-g32bbf76e4345a7961445b86a7cfccffa8a287fc1 Author: Jonathan Wakely Date: Fri Nov 5 21:42:20 2021 +0000 libstdc++: Fix inconsistent noexcept-specific for valarray begin/end These declarations should be noexcept after I added it to the definitions in . libstdc++-v3/ChangeLog: * include/bits/range_access.h (begin(valarray), end(valarray)): Add noexcept. (cherry picked from commit 2b2d97fc545635a0f6aa9c9ee3b017394bc494bf) Diff: --- libstdc++-v3/include/bits/range_access.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/libstdc++-v3/include/bits/range_access.h b/libstdc++-v3/include/bits/range_access.h index aee72c3fae4..98c81a153f3 100644 --- a/libstdc++-v3/include/bits/range_access.h +++ b/libstdc++-v3/include/bits/range_access.h @@ -104,10 +104,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION template class valarray; // These overloads must be declared for cbegin and cend to use them. - template _Tp* begin(valarray<_Tp>&); - template const _Tp* begin(const valarray<_Tp>&); - template _Tp* end(valarray<_Tp>&); - template const _Tp* end(const valarray<_Tp>&); + template _Tp* begin(valarray<_Tp>&) noexcept; + template const _Tp* begin(const valarray<_Tp>&) noexcept; + template _Tp* end(valarray<_Tp>&) noexcept; + template const _Tp* end(const valarray<_Tp>&) noexcept; /** * @brief Return an iterator pointing to the first element of