[llvm-bugs] [Bug 45756] New: [MS ABI] default closure constructor missing with dllexport
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 30 07:12:40 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=45756
Bug ID: 45756
Summary: [MS ABI] default closure constructor missing with
dllexport
Product: clang
Version: unspecified
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: C++
Assignee: unassignedclangbugs at nondot.org
Reporter: zahira.ammarguellat at intel.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Considering t2.cpp:
struct __declspec(dllexport) foo {
foo(int a = 0) {};
};
int main()
{
foo f[3];
return 0;
}
When compiled with MSVC these are the symbols generated:
ksh-3.2$ dumpbin /symbols t2.obj | grep foo
013 00000000 SECT4 notype () External | ??0foo@@QEAA at H@Z (public:
__cdecl foo::foo(int))
014 00000000 SECT6 notype () External | ??4foo@@QEAAAEAU0 at AEBU0@@Z
(public: struct foo & __cdecl foo::operator=(struct foo const &))
015 00000000 SECT5 notype () External | ??4foo@@QEAAAEAU0@$$QEAU0@@Z
(public: struct foo & __cdecl foo::operator=(struct foo &&))
016 00000000 SECT7 notype () External | ??_Ffoo@@QEAAXXZ (public: void
__cdecl foo::`default constructor closure'(void))
023 00000000 SECTB notype Static | $unwind$??_Ffoo@@QEAAXXZ
026 00000000 SECTC notype Static | $pdata$??_Ffoo@@QEAAXXZ
ksh-3.2$
When compiled with clang these are the symbols generated:
ksh-3.2$ dumpbin /symbols t2.o | grep foo
008 00000000 SECT4 notype () External | ??4foo@@QEAAAEAU0 at AEBU0@@Z
(public: struct foo & __cdecl foo::operator=(struct foo const &))
00D 00000000 SECT5 notype () External | ??4foo@@QEAAAEAU0@$$QEAU0@@Z
(public: struct foo & __cdecl foo::operator=(struct foo &&))
ksh-3.2$
--
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/20200430/27bf08bb/attachment-0001.html>
More information about the llvm-bugs
mailing list