This is the mail archive of the
mailing list for the GCC project.
Re: C++98/C++11 ABI compatibility for gcc-4.7
On 31 May 2012 22:39, Jonathan Wakely wrote:
> On 31 May 2012 22:35, James Y Knight wrote:
>> I understand that the ABI changes generally cannot be avoided, but a lot
>> of pain for a lot of people could be avoided by making things fail
>> obviously with a link error, instead of sometimes, arbitrarily, if you're
>> lucky, you'll get a segfault at runtime.
> Do you have any suggestions for how to do that?
... *without* breaking the current ABI, because if we weren't trying
to keep it stable it would be much easier.
If you want to you can configure with
--enable-symvers=gnu-versioned-namespace and test that mode, which
would allow everything to be put in something like std::__cxx2011::__8
for -std=c++11 mode, but AFAICT only one person seems to be trying
that option out and giving feedback on it.