<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [-cxx-abi microsoft] Arguments with dtors must be constructed right-to-left due to callee destruction"
href="http://llvm.org/bugs/show_bug.cgi?id=18035">bug 18035</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>FIXED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [-cxx-abi microsoft] Arguments with dtors must be constructed right-to-left due to callee destruction"
href="http://llvm.org/bugs/show_bug.cgi?id=18035#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED FIXED - [-cxx-abi microsoft] Arguments with dtors must be constructed right-to-left due to callee destruction"
href="http://llvm.org/bugs/show_bug.cgi?id=18035">bug 18035</a>
from <span class="vcard"><a class="email" href="mailto:rnk@google.com" title="Reid Kleckner <rnk@google.com>"> <span class="fn">Reid Kleckner</span></a>
</span></b>
<pre>Fixed in r196402.
Sebastian Redl pointed out that I need to fix C++11 list construction:
$ cat t.cpp
extern "C" int printf(const char *, ...);
struct A { A(int, int) {} };
int f(int i) {
printf("%d\n", i);
return i;
}
int main() {
A a{f(1), f(2)};
}
This now prints 2, 1 with clang. MSVC 2013 CTP actually has the same behavior,
so they are non-compliant. I think for the moment we have to be bugwards
compatible. If they change, we can key our behavior off of -fmsc-version.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>