https://llvm.org/bugs/show_bug.cgi?id=27221

Richard Smith <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |[email protected]
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <[email protected]> ---
You've misunderstood how copy elision works. The program is analysed according
to the normal language rules (including template instantiation etc), except
that the implementation is permitted to choose to not perform a copy *if it
feels like it*. The definition is still required, because the implementation
could choose to invoke it. (And note that an implementation is not even
required to make the same choice each time it takes the same path through the
same code.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to