<html>
<head>
<base href="https://bugs.llvm.org/">
</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 - [MS ABI] default closure constructor missing with dllexport"
href="https://bugs.llvm.org/show_bug.cgi?id=45756">45756</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>[MS ABI] default closure constructor missing with dllexport
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>unspecified
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>enhancement
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>zahira.ammarguellat@intel.com
</td>
</tr>
<tr>
<th>CC</th>
<td>blitzrakete@gmail.com, dgregor@apple.com, erik.pilkington@gmail.com, llvm-bugs@lists.llvm.org, richard-llvm@metafoo.co.uk
</td>
</tr></table>
<p>
<div>
<pre>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@H@Z (public:
__cdecl foo::foo(int))
014 00000000 SECT6 notype () External | ??4foo@@QEAAAEAU0@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@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$</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>