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
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.
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: