This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: C++ PATCH for P0135, C++17 guaranteed copy elision


On Thu, Oct 6, 2016 at 5:26 PM, Jason Merrill <jason@redhat.com> wrote:
> Here's an update that handles more cases.

And a further update that handles direct-initialization, which the
actual proposal doesn't specify at all.  I'm dealing with
direct-initialization from a type with a conversion operator that
produces a prvalue of the type being initialized by treating
direct-initialization from an unrelated type like copy-initialization
with access to explicit conversions.  And relatedly, for conversion
from a braced-init-list with a single element: we look for
constructors as normal, but also consider conversion functions from
the element type.  I should probably write up some wording for this
for Issaquah.

Tested x86_64-pc-linux-gnu, applied to trunk.

Attachment: elision3.diff
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]