[cfe-dev] [Lifetime, Temporary] Generate ExprWithCleanups for trivially destructible tempoararies

Richard Smith via cfe-dev cfe-dev at lists.llvm.org
Tue May 3 19:03:39 PDT 2016


On Tue, May 3, 2016 at 6:37 PM, Reid Kleckner via cfe-dev <
cfe-dev at lists.llvm.org> wrote:

> On Tue, May 3, 2016 at 4:49 PM, Richard Smith via cfe-dev <
> cfe-dev at lists.llvm.org> wrote:
>
>> Yep, this is technically a bug. (As mentioned, I'm working on getting the
>> standard fixed to be a bit less ridiculous here. We'll see how that goes.)
>>
>
> Even if we change the C++ standard, people will probably still bug us
> about C: https://llvm.org/bugs/show_bug.cgi?id=27604
>

It looks like the problem there is that we start the lifetime too late (in
C), not that we end it too early. But I suppose with our stack-based
approach to cleanups, these are closely-related issues :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160503/412a9d54/attachment.html>


More information about the cfe-dev mailing list