Re: Random crash with GCC 4.7.1
|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
On 10 July 2012 20:31, Paul Smith wrote: > On Mon, 2012-07-09 at 19:44 +0100, Jonathan Wakely wrote: >> >> For GCC 4.7.0 and 4.7.1 there is an incompatibility between c++11 and >> >> c++98 code due to the size of std::list being different in C++11 mode. >> >> >> > Will this bug be fixed? Is there bug report? >> >> It wasn't a bug, it was done intentionally, but the change has been >> reverted so the incompatibility will be gone in GCC 4.7.2 > > Hm, so if I compile code with C++11 enabled and GCC 4.7.0/4.7.1, and I > link with a shared lib compiled with C++98 OR with some other version of > GCC, can I expect to see issues with std::list incompatibility? Yes, among other issues, see http://gcc.gnu.org/wiki/Cxx11AbiCompatibility and http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53657 > Or can I expect to see issues combining GCC 4.7.0/4.7.1 code with 4.7.2 > and later? Yes, if the 4.7. compiled code uses std::list in C++11 mode. > If so is there a patch I can apply to my GCC 4.7.1 to proactively fix > this up, since 4.7.2 is still a few months away from release? I'm sure you can find it for yourself in subversion.