From: redi Date: Tue, 29 Jan 2019 01:49:36 +0000 (+0000) Subject: Fix tests for complex overloads of std::arg and std::proj X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5efc435685c88c199267dd287467d82c0a11ee68;p=thirdparty%2Fgcc.git Fix tests for complex overloads of std::arg and std::proj The test for the synopsis of incorrectly adds constexpr to two functions in C++2a mode, but the C++2a draft and the header do not declare them constexpr. * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect constexpr specifiers from arg and proj. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268359 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 1d47e86ccd34..078a4ae71540 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,8 @@ 2019-01-29 Jonathan Wakely + * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect + constexpr specifiers from arg and proj. + * config/abi/pre/gnu.ver (GLIBCXX_3.4.26): Add missing exports for __shared_ptr instantiations used by gcc4-compatible ABI. diff --git a/libstdc++-v3/testsuite/26_numerics/headers/complex/synopsis.cc b/libstdc++-v3/testsuite/26_numerics/headers/complex/synopsis.cc index 3a22625c9d31..11307d194c09 100644 --- a/libstdc++-v3/testsuite/26_numerics/headers/complex/synopsis.cc +++ b/libstdc++-v3/testsuite/26_numerics/headers/complex/synopsis.cc @@ -89,10 +89,10 @@ namespace std { template _GLIBCXX_CONSTEXPR T real(const complex&); template _GLIBCXX_CONSTEXPR T imag(const complex&); template T abs(const complex&); - template _GLIBCXX20_CONSTEXPR T arg(const complex&); + template T arg(const complex&); template _GLIBCXX20_CONSTEXPR T norm(const complex&); template _GLIBCXX20_CONSTEXPR complex conj(const complex&); - template _GLIBCXX20_CONSTEXPR complex proj(const complex&); + template complex proj(const complex&); template complex polar(const T& rho, const T& theta); // 26.2.8 transcendentals: