[llvm-bugs] [Bug 39764] New: Coroutine optimization change returned value when using proxy type
via llvm-bugs
llvm-bugs at lists.llvm.org
Fri Nov 23 13:36:43 PST 2018
https://bugs.llvm.org/show_bug.cgi?id=39764
Bug ID: 39764
Summary: Coroutine optimization change returned value when
using proxy type
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++2a
Assignee: unassignedclangbugs at nondot.org
Reporter: sidney.congard at gmail.com
CC: blitzrakete at gmail.com, erik.pilkington at gmail.com,
llvm-bugs at lists.llvm.org, richard-llvm at metafoo.co.uk
I implemented a minimal promise type which returns a proxy converted to the
promise's member value when it's returned from the coroutine. This member value
is set by 'co_return' (by implementing 'return_value').
Some optimization seems to elide the local value, so the value set by calling
'co_return' is not returned :
https://wandbox.org/permlink/MdMuxwTjZdmM9xVi
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20181123/d3553bc0/attachment.html>
More information about the llvm-bugs
mailing list