Re: libstdc++ c++98 & c++11 ABI incompatibility

2012-07-03 Thread Jason Merrill
On 07/03/2012 08:08 AM, Michael Matz wrote: Hi, On Mon, 2 Jul 2012, Jeff Law wrote: On 07/02/2012 11:53 AM, Paolo Carlini wrote: I also want to mention (I don't think somebody did already in the thread) that at some point, with Jason too, we discussed the idea of adding to each binary a mark

Re: libstdc++ c++98 & c++11 ABI incompatibility

2012-07-03 Thread Michael Matz
Hi, On Mon, 2 Jul 2012, Jeff Law wrote: > On 07/02/2012 11:53 AM, Paolo Carlini wrote: > > > > I also want to mention (I don't think somebody did already in the > > thread) that at some point, with Jason too, we discussed the idea of > > adding to each binary a marker about the ABI version which

Re: libstdc++ c++98 & c++11 ABI incompatibility

2012-07-02 Thread Jeff Law
On 07/02/2012 11:53 AM, Paolo Carlini wrote: I also want to mention (I don't think somebody did already in the thread) that at some point, with Jason too, we discussed the idea of adding to each binary a marker about the ABI version which then would be used by the linker to warn or error out. Th

Re: libstdc++ c++98 & c++11 ABI incompatibility

2012-07-02 Thread Paolo Carlini
Hi, On 07/02/2012 07:24 PM, Richard Guenther wrote: On Mon, Jul 2, 2012 at 7:00 PM, Jonathan Wakely wrote: On 2 July 2012 17:43, Jeff Law wrote: On 07/02/2012 10:26 AM, Michael Meeks wrote: On Thu, 2012-06-14 at 15:14 +0200, Matthias Klose wrote: While PR53646 claims that c++98 and c++11

Re: libstdc++ c++98 & c++11 ABI incompatibility

2012-07-02 Thread Jonathan Wakely
On 2 July 2012 18:24, Richard Guenther wrote: > On Mon, Jul 2, 2012 at 7:00 PM, Jonathan Wakely wrote: >> I'd like to see inline namespaces used so that in C++11 mode std::list >> refers to (for example) std::__2011::list, which has the additional >> member.  That wouldn't link to C++03's std::list

Re: libstdc++ c++98 & c++11 ABI incompatibility

2012-07-02 Thread Richard Guenther
On Mon, Jul 2, 2012 at 7:00 PM, Jonathan Wakely wrote: > On 2 July 2012 17:43, Jeff Law wrote: >> On 07/02/2012 10:26 AM, Michael Meeks wrote: >>> >>> >>> On Thu, 2012-06-14 at 15:14 +0200, Matthias Klose wrote: While PR53646 claims that c++98 and c++11 should be ABI compatible (mo

Re: libstdc++ c++98 & c++11 ABI incompatibility

2012-07-02 Thread Jonathan Wakely
On 2 July 2012 17:43, Jeff Law wrote: > On 07/02/2012 10:26 AM, Michael Meeks wrote: >> >> >> On Thu, 2012-06-14 at 15:14 +0200, Matthias Klose wrote: >>> >>> While PR53646 claims that c++98 and c++11 should be ABI >>> compatible (modulo bugs), the addition of the _M_size member >>> to std::_List_

Re: libstdc++ c++98 & c++11 ABI incompatibility

2012-07-02 Thread Jeff Law
On 07/02/2012 10:26 AM, Michael Meeks wrote: On Thu, 2012-06-14 at 15:14 +0200, Matthias Klose wrote: While PR53646 claims that c++98 and c++11 should be ABI compatible (modulo bugs), the addition of the _M_size member to std::_List_base::_List_impl makes libraries using std::list in headers in

Re: libstdc++ c++98 & c++11 ABI incompatibility

2012-07-02 Thread Michael Meeks
On Thu, 2012-06-14 at 15:14 +0200, Matthias Klose wrote: > While PR53646 claims that c++98 and c++11 should be ABI > compatible (modulo bugs), the addition of the _M_size member > to std::_List_base::_List_impl makes libraries using > std::list in headers incompatible This is pretty nasty

Re: libstdc++ c++98 & c++11 ABI incompatibility

2012-06-14 Thread Jonathan Wakely
On 14 June 2012 14:14, Matthias Klose wrote: > So what could be done for a distribution? > >  - For this particular issue, ask upstreams to work around this >   particular incompatibility.  This might work better, if the >   upstream sits "closer" to the distribution, but doesn't seem >   to be a g

Re: libstdc++ c++98 & c++11 ABI incompatibility

2012-06-14 Thread Jason Merrill
On 06/14/2012 06:14 AM, Matthias Klose wrote: While PR53646 claims that c++98 and c++11 should be ABI compatible (modulo bugs), the addition of the _M_size member to std::_List_base::_List_impl makes libraries using std::list in headers incompatible, when built in c++98 and c++11 mode. So it do

libstdc++ c++98 & c++11 ABI incompatibility

2012-06-14 Thread Matthias Klose
While PR53646 claims that c++98 and c++11 should be ABI compatible (modulo bugs), the addition of the _M_size member to std::_List_base::_List_impl makes libraries using std::list in headers incompatible, when built in c++98 and c++11 mode. Currently seen in libsigc++ (Signal Framework for C++) an