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

Tim Northover via cfe-dev cfe-dev at lists.llvm.org
Mon May 15 08:07:27 PDT 2017


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.



More information about the cfe-dev mailing list