[g++] make_pair inlining failure?

Marc Glisse marc.glisse@inria.fr
Tue Nov 29 14:34:00 GMT 2011


On Tue, 29 Nov 2011, Robert Jones wrote:

> On Tue, Nov 29, 2011 at 9:32 AM, Marc Glisse <marc.glisse@inria.fr> wrote:
>> And those examples are
>> basically the only cases where copy elision is allowed. Yes, some of us
>> would like to change that.
>
> Change it to more permissive of copy elision?

Yes. Note that it wouldn't always be easy for the compiler and it would 
likely only pick a few low hanging fruits. I am not sure that pair 
conversion is hanging quite low enough... But allowing it is a necessary 
first step.

-- 
Marc Glisse



More information about the Gcc-help mailing list