[cfe-dev] Dynamic memory allocation and deleted definitions
Halfdan Ingvarsson
halfdan at sidefx.com
Wed Nov 13 10:27:17 PST 2013
On 13-11-13 01:19 PM, David Blaikie wrote:
>
>
>
> On Wed, Nov 13, 2013 at 10:10 AM, Rahul Jain <1989.rahuljain at gmail.com
> <mailto:1989.rahuljain at gmail.com>> wrote:
>
>
>
> Is this a potential bug in clang or am I missing something obvious??
>
>
> I'd have to check wording to see the finer points, but certainly the
> issue you are hitting is that, if A's ctor throws on one of the
> constructed objects in the array, the dtor for the previous array
> elements needs to be run.
>
> I'm not sure if the language requires that this check only occur for
> non-nothrow ctors or not.
>
gcc only errors when there's a non-trivial default constructor.
- ½
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20131113/8a8c2e3c/attachment.html>
More information about the cfe-dev
mailing list