This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/70607] [5/6/7 Regression] The return type of std::conj must be std::complex<T>
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 25 Jan 2017 15:01:37 +0000
- Subject: [Bug libstdc++/70607] [5/6/7 Regression] The return type of std::conj must be std::complex<T>
- Auto-submitted: auto-generated
- References: <bug-70607-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70607
--- Comment #7 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Author: redi
Date: Wed Jan 25 15:01:05 2017
New Revision: 244900
URL: https://gcc.gnu.org/viewcvs?rev=244900&root=gcc&view=rev
Log:
PR libstdc++/70607 make proj(T) and conj(T) return complex<T>
PR libstdc++/61791
PR libstdc++/70607
* include/std/complex (real(T), imag(T)): Add _GLIBCXX_CONSTEXPR.
(proj(T), conj(T)): Change return types per DR 1522.
* include/tr1/complex (conj): Remove overloads and use std::conj.
* testsuite/26_numerics/complex/dr781_dr1137.cc: Rename to...
* testsuite/26_numerics/complex/dr781.cc: ... this, and update.
* testsuite/26_numerics/complex/value_operations/constexpr2.cc: Test
real(T) and imag(T). Allow testing for C++11 too.
Added:
trunk/libstdc++-v3/testsuite/26_numerics/complex/dr781.cc
- copied, changed from r244898,
trunk/libstdc++-v3/testsuite/26_numerics/complex/dr781_dr1137.cc
Removed:
trunk/libstdc++-v3/testsuite/26_numerics/complex/dr781_dr1137.cc
Modified:
trunk/libstdc++-v3/ChangeLog
trunk/libstdc++-v3/include/std/complex
trunk/libstdc++-v3/include/tr1/complex
trunk/libstdc++-v3/testsuite/26_numerics/complex/value_operations/constexpr2.cc