diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-9.5/0002-libstdc-Fix-inconsistent-noexcept-specific-for-valar.patch')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-9.5/0002-libstdc-Fix-inconsistent-noexcept-specific-for-valar.patch | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-9.5/0002-libstdc-Fix-inconsistent-noexcept-specific-for-valar.patch b/meta/recipes-devtools/gcc/gcc-9.5/0002-libstdc-Fix-inconsistent-noexcept-specific-for-valar.patch new file mode 100644 index 0000000000..506064bfc2 --- /dev/null +++ b/meta/recipes-devtools/gcc/gcc-9.5/0002-libstdc-Fix-inconsistent-noexcept-specific-for-valar.patch | |||
@@ -0,0 +1,44 @@ | |||
1 | From 60d966708d7cf105dccf128d2b7a38b0b2580a1a Mon Sep 17 00:00:00 2001 | ||
2 | From: Jonathan Wakely <jwakely@redhat.com> | ||
3 | Date: Fri, 5 Nov 2021 21:42:20 +0000 | ||
4 | Subject: [PATCH] libstdc++: Fix inconsistent noexcept-specific for valarray | ||
5 | begin/end | ||
6 | |||
7 | These declarations should be noexcept after I added it to the | ||
8 | definitions in <valarray>. | ||
9 | |||
10 | libstdc++-v3/ChangeLog: | ||
11 | |||
12 | * include/bits/range_access.h (begin(valarray), end(valarray)): | ||
13 | Add noexcept. | ||
14 | |||
15 | (cherry picked from commit 2b2d97fc545635a0f6aa9c9ee3b017394bc494bf) | ||
16 | |||
17 | Upstream-Status: Backport [https://github.com/hkaelber/gcc/commit/2b2d97fc545635a0f6aa9c9ee3b017394bc494bf] | ||
18 | Signed-off-by: Virendra Thakur <virendrak@kpit.com> | ||
19 | |||
20 | --- | ||
21 | libstdc++-v3/include/bits/range_access.h | 8 ++++---- | ||
22 | 1 file changed, 4 insertions(+), 4 deletions(-) | ||
23 | |||
24 | diff --git a/libstdc++-v3/include/bits/range_access.h b/libstdc++-v3/include/bits/range_access.h | ||
25 | index 3d99ea92027..4736e75fda1 100644 | ||
26 | --- a/libstdc++-v3/include/bits/range_access.h | ||
27 | +++ b/libstdc++-v3/include/bits/range_access.h | ||
28 | @@ -101,10 +101,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION | ||
29 | |||
30 | template<typename _Tp> class valarray; | ||
31 | // These overloads must be declared for cbegin and cend to use them. | ||
32 | - template<typename _Tp> _Tp* begin(valarray<_Tp>&); | ||
33 | - template<typename _Tp> const _Tp* begin(const valarray<_Tp>&); | ||
34 | - template<typename _Tp> _Tp* end(valarray<_Tp>&); | ||
35 | - template<typename _Tp> const _Tp* end(const valarray<_Tp>&); | ||
36 | + template<typename _Tp> _Tp* begin(valarray<_Tp>&) noexcept; | ||
37 | + template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept; | ||
38 | + template<typename _Tp> _Tp* end(valarray<_Tp>&) noexcept; | ||
39 | + template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept; | ||
40 | |||
41 | /** | ||
42 | * @brief Return an iterator pointing to the first element of | ||
43 | -- | ||
44 | 2.25.1 \ No newline at end of file | ||