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++/49476] Complex functions returning references (not following C++ standard)


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49476

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |WONTFIX

--- Comment #5 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-06-20 18:21:01 UTC ---
I don't think we should fix now, after 7 years, the return type of std::real
and std::imag in C++03 mode, because this would cause serious ABI problems when
objects build with pre- and post- <complex> header are linked together. Indeed,
that's exactly why I changed the return-type only in C++0x mode, where we have
leeway.


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