<html>
<head>
<base href="http://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - -fdefine-sized-deallocation causes multiple symbol defintion errors on windows (mingw target)"
href="http://llvm.org/bugs/show_bug.cgi?id=22635">22635</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>-fdefine-sized-deallocation causes multiple symbol defintion errors on windows (mingw target)
</td>
</tr>
<tr>
<th>Product</th>
<td>new-bugs
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Linux
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>new bugs
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>t.poechtrager@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>llvmbugs@cs.uiuc.edu
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>$ cat a.cpp
#include <string>
void b();
int main()
{
auto x = new std::string[10];
delete[] x;
b();
}
$ cat b.cpp
#include <string>
void b()
{
auto x = new std::string[10];
delete[] x;
}
###
$ clang++ -target i686-w64-mingw32 [...] a.cpp -std=c++14
-fdefine-sized-deallocation -g -c
$ clang++ -target i686-w64-mingw32 [...] b.cpp -std=c++14
-fdefine-sized-deallocation -g -c
$ clang++ -target i686-w64-mingw32 [...] a.o b.o -o test
b.o:(.text+0xe0): multiple definition of `operator delete[](void*, unsigned
int)'
a.o:(.text+0x100): first defined here
collect2: error: ld returned 1 exit status
clang-3.7: error: linker (via gcc) command failed with exit code 1 (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>