<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_REOPENED "
title="REOPENED --- - -fdefine-sized-deallocation causes multiple symbol defintion errors on windows (mingw target)"
href="http://llvm.org/bugs/show_bug.cgi?id=22635">bug 22635</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>RESOLVED
</td>
<td>REOPENED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>FIXED
</td>
<td>---
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - -fdefine-sized-deallocation causes multiple symbol defintion errors on windows (mingw target)"
href="http://llvm.org/bugs/show_bug.cgi?id=22635#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_REOPENED "
title="REOPENED --- - -fdefine-sized-deallocation causes multiple symbol defintion errors on windows (mingw target)"
href="http://llvm.org/bugs/show_bug.cgi?id=22635">bug 22635</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>It's actually still broken for any PE/COFF target. This is my test case:
$ cat t.cpp
struct A {
int a;
};
int FOO() {
A *p = new A;
delete p;
return 0;
}
$ clang -fdefine-sized-deallocation -std=c++14 -c t.cpp -DFOO=foo -o t1.o &&
clang -fdefine-sized-deallocation -std=c++14 -c t.cpp -DFOO=main -o t2.o &&
clang t1.o t2.o -o t.exe
t2.o : error LNK2005: "void __cdecl operator delete(void *,unsigned int)"
(??3@YAXPAXI@Z) already defined in t1.o
t.exe : fatal error LNK1169: one or more multiply defined symbols found
clang.exe: error: linker command failed with exit code 1169 (use -v to see
invocation)</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>