summaryrefslogtreecommitdiffstats
path: root/chart2/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2021-11-04 09:30:14 +0100
committerStephan Bergmann <sbergman@redhat.com>2021-11-04 10:29:36 +0100
commite5ba7ef1b89a9dcc48509c9bf7d6059dc8aa7ae3 (patch)
tree16cd6aaa356a6334b5537a7ef93878ffd90b1ec7 /chart2/source
parentChange git.freedesktop.org -> git.libreoffice.org (diff)
downloadcore-e5ba7ef1b89a9dcc48509c9bf7d6059dc8aa7ae3.tar.gz
core-e5ba7ef1b89a9dcc48509c9bf7d6059dc8aa7ae3.zip
libstdc++ bug 103022 is fixed in GCC 12
(<https://gcc.gnu.org/onlinedocs/libstdc++/manual/using_macros.html> states that _GLIBCXX_RELEASE "first appeared in the GCC 7.1 release and is not defined for GCC 6.x or older releases", leaving it a bit unclear what the status is for our GCC 7.0.0 baseline, so play it safe and assume it can be undefined) Change-Id: Iae10060bdab88e2e6df3954c2b6806534a761b31 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124675 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/tools/InternalData.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/chart2/source/tools/InternalData.cxx b/chart2/source/tools/InternalData.cxx
index 143a097d0c25..dd48289e831c 100644
--- a/chart2/source/tools/InternalData.cxx
+++ b/chart2/source/tools/InternalData.cxx
@@ -69,9 +69,11 @@ private:
template< typename T >
Sequence< T > lcl_ValarrayToSequence( const std::valarray< T > & rValarray )
{
+#if defined __GLIBCXX__ && (!defined _GLIBCXX_RELEASE || _GLIBCXX_RELEASE < 12)
// workaround for https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103022
if (!size(rValarray))
return Sequence<T>();
+#endif
return comphelper::containerToSequence(rValarray);
}