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

Richard Smith <richard-l...@metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |richard-l...@metafoo.co.uk
         Resolution|---                         |INVALID

--- Comment #1 from Richard Smith <richard-l...@metafoo.co.uk> ---
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
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to