aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2019-01-29 01:49:36 +0000
committerJonathan Wakely <redi@gcc.gnu.org>2019-01-29 01:49:36 +0000
commit375d59849a2773e926ce26de006247d6f0a9490d (patch)
tree97e9736c15036c1a72d647fa89f3837d4d62472e /libstdc++-v3
parent053a1f232023b15c21bdd8e89f67de21d8aea285 (diff)
downloadgcc-375d59849a2773e926ce26de006247d6f0a9490d.zip
gcc-375d59849a2773e926ce26de006247d6f0a9490d.tar.gz
gcc-375d59849a2773e926ce26de006247d6f0a9490d.tar.bz2
Fix tests for complex overloads of std::arg and std::proj
The test for the synopsis of <complex> incorrectly adds constexpr to two functions in C++2a mode, but the C++2a draft and the <complex> header do not declare them constexpr. * testsuite/26_numerics/headers/complex/synopsis.cc: Remove incorrect constexpr specifiers from arg and proj. From-SVN: r268359
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog3
-rw-r--r--libstdc++-v3/testsuite/26_numerics/headers/complex/synopsis.cc4
2 files changed, 5 insertions, 2 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 1d47e86..078a4ae 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,5 +1,8 @@
2019-01-29 Jonathan Wakely <jwakely@redhat.com>
+ * 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 3a22625..11307d1 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<class T> _GLIBCXX_CONSTEXPR T real(const complex<T>&);
template<class T> _GLIBCXX_CONSTEXPR T imag(const complex<T>&);
template<class T> T abs(const complex<T>&);
- template<class T> _GLIBCXX20_CONSTEXPR T arg(const complex<T>&);
+ template<class T> T arg(const complex<T>&);
template<class T> _GLIBCXX20_CONSTEXPR T norm(const complex<T>&);
template<class T> _GLIBCXX20_CONSTEXPR complex<T> conj(const complex<T>&);
- template<class T> _GLIBCXX20_CONSTEXPR complex<T> proj(const complex<T>&);
+ template<class T> complex<T> proj(const complex<T>&);
template<class T> complex<T> polar(const T& rho, const T& theta);
// 26.2.8 transcendentals: