<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:joachim@joameyer.de" title="Joachim Meyer <joachim@joameyer.de>"> <span class="fn">Joachim Meyer</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Clang introduces invalid padding for empty base classes"
href="https://bugs.llvm.org/show_bug.cgi?id=51689">bug 51689</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;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Clang introduces invalid padding for empty base classes"
href="https://bugs.llvm.org/show_bug.cgi?id=51689#c3">Comment # 3</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - Clang introduces invalid padding for empty base classes"
href="https://bugs.llvm.org/show_bug.cgi?id=51689">bug 51689</a>
from <span class="vcard"><a class="email" href="mailto:joachim@joameyer.de" title="Joachim Meyer <joachim@joameyer.de>"> <span class="fn">Joachim Meyer</span></a>
</span></b>
<pre>Closing and leaving this as a reference:
<a href="https://devblogs.microsoft.com/cppblog/optimizing-the-layout-of-empty-base-classes-in-vs2015-update-2-3/">https://devblogs.microsoft.com/cppblog/optimizing-the-layout-of-empty-base-classes-in-vs2015-update-2-3/</a>
One can use `__declspec(empty_bases)` to work around the issue right now and a
future major version of MSVC might change the ABI to do that by default
(although there hasn't been a new major version since then).
Still wondering whether it might be possible, to not just silently miscompile
when using the differently layouted as parameters to CUDA kernels.</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>