This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/70607] [5/6/7 Regression] The return type of std::conj must be std::complex<T>


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]