This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/53429] complex::{imag,real} should be marked alwaysinline to guarantee libstdc++ binary compatibility between C++98 and C++11
- From: "jyasskin at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 21 May 2012 15:30:45 +0000
- Subject: [Bug libstdc++/53429] complex::{imag,real} should be marked alwaysinline to guarantee libstdc++ binary compatibility between C++98 and C++11
- Auto-submitted: auto-generated
- References: <bug-53429-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53429
--- Comment #3 from Jeffrey Yasskin <jyasskin at gcc dot gnu.org> 2012-05-21 15:30:45 UTC ---
Richard, I'm not asking that it be possible to link together code compiled in
C++98 and C++11 mode. I'm asking that gcc be able to build in C++11 mode at
all. If libstdc++.so exposed the c++98 version of complex::real(), then all
C++11 programs that used complex would be potentially broken.
Another way to fix this would, of course, be to either expose a configuration
option to build libstdc++.so in C++11 mode or to install two different .so
files in parallel, but doing that seems unnecessarily hostile to users when it
would be pretty easy to guarantee that the one .so works for both versions of
the language.