<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<div class="moz-cite-prefix">On 13-11-13 01:19 PM, David Blaikie
wrote:<br>
</div>
<blockquote
cite="mid:CAENS6Eu+4=8NKvmXaYGOUvAXKbnrmHWAbSjBScn3G7kZO-zymw@mail.gmail.com"
type="cite">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Wed, Nov 13, 2013 at 10:10 AM,
Rahul Jain <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:1989.rahuljain@gmail.com" target="_blank">1989.rahuljain@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><br>
<br>
<div>Is this a potential bug in clang or am I missing
something obvious??</div>
</div>
</blockquote>
<div><br>
</div>
<div>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.<br>
<br>
I'm not sure if the language requires that this check only
occur for non-nothrow ctors or not.</div>
</div>
</div>
</div>
<br>
</blockquote>
gcc only errors when there's a non-trivial default constructor.<br>
<br>
- ½<br>
<br>
</body>
</html>