[LLVMbugs] [Bug 22635] -fdefine-sized-deallocation causes multiple symbol defintion errors on windows (mingw target)
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Feb 19 13:00:57 PST 2015
http://llvm.org/bugs/show_bug.cgi?id=22635
Reid Kleckner <rnk at google.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|RESOLVED |REOPENED
Resolution|FIXED |---
--- Comment #3 from Reid Kleckner <rnk at google.com> ---
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 at 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)
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150219/ae76af64/attachment.html>
More information about the llvm-bugs
mailing list