This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: C++98/C++11 ABI compatibility for gcc-4.7
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Stephan Bergmann <sbergman at redhat dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 3 Jul 2012 20:59:37 +0100
- Subject: Re: C++98/C++11 ABI compatibility for gcc-4.7
- References: <684e2daa82dfe58f3c0ca7898a646503.squirrel@fuhm.net> <CAH6eHdQEciws3XiV_mbLDaL4OA3c1B91sYH1=3OOEsK8+NhhYQ@mail.gmail.com> <2f242c57969394ada4e4245513f247de.squirrel@fuhm.net> <4FDEDE37.6060704@redhat.com> <CAH6eHdRrzhHDUx_9S6Awm4m-DmxLcwLsEDMjFFkLL78M7b4q3g@mail.gmail.com> <4FF349BD.7060600@redhat.com>
On 3 July 2012 20:36, Jason Merrill wrote:
> On 06/18/2012 04:46 AM, Jonathan Wakely wrote:
>>
>> The problems arise when user code that uses the "inline-only" code is
>> linked to other user-code that has a different definition of that
>> inline-only code.
>
>
> What problems arise then? As long as the interface of the user code is the
> same, it doesn't matter which definition of the inline-only code is used.
Returning a std::pair by value from a function causes problems if the
caller and callee don't use the same -std setting,
http://gcc.gnu.org/PR53657 and three or four other PRs.
Until today using a std::list was a problem.
None of the std::pair or std::list code exists in libstdc++.so, it's
all inline-only template code.