[cfe-dev] Default argument constructor with brace initialized array miscompilation

Richard Smith via cfe-dev cfe-dev at lists.llvm.org
Mon May 15 09:01:57 PDT 2017


This was already filed as PR22877; I fixed it last week.

On 15 May 2017 8:07 am, "Tim Northover via cfe-dev" <cfe-dev at lists.llvm.org>
wrote:

On 29 April 2017 at 15:32, Adam Nowacki via cfe-dev
<cfe-dev at lists.llvm.org> wrote:
> https://godbolt.org/g/sm5tMo
>
> For code below there are missing destructor calls - make_a() is called 5
times but ~A() only once.

Interesting, thanks for telling us about it. It certainly looks dodgy
to me so I've created a bug report: http://llvm.org/PR33040. Not
really my area, but I'll try to actually take a look at it today.

Tim.
_______________________________________________
cfe-dev mailing list
cfe-dev at lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170515/00a64973/attachment.html>


More information about the cfe-dev mailing list