This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/49476] Complex functions returning references (not following C++ standard)
- From: "paolo.carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 20 Jun 2011 18:21:16 +0000
- Subject: [Bug libstdc++/49476] Complex functions returning references (not following C++ standard)
- Auto-submitted: auto-generated
- References: <bug-49476-4@http.gcc.gnu.org/bugzilla/>
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.