From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id C5C7B3857C44; Fri, 5 Nov 2021 21:45:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C5C7B3857C44 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 r12-4963] libstdc++: Fix inconsistent noexcept-specific for valarray begin/end X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 70d6f6e41f77269f7d293c6fbccf978680e68d2a X-Git-Newrev: 2b2d97fc545635a0f6aa9c9ee3b017394bc494bf Message-Id: <20211105214554.C5C7B3857C44@sourceware.org> Date: Fri, 5 Nov 2021 21:45:54 +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: Fri, 05 Nov 2021 21:45:54 -0000 https://gcc.gnu.org/g:2b2d97fc545635a0f6aa9c9ee3b017394bc494bf commit r12-4963-g2b2d97fc545635a0f6aa9c9ee3b017394bc494bf 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. 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 3dec687dd94..5e4c4727ebf 100644 --- a/libstdc++-v3/include/bits/range_access.h +++ b/libstdc++-v3/include/bits/range_access.h @@ -110,10 +110,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