<html>
<head>
<base href="http://bugzilla.gdcproject.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:johannespfau@gmail.com" title="Johannes Pfau <johannespfau@gmail.com>"> <span class="fn">Johannes Pfau</span></a>
</span> changed
<a class="bz_bug_link
bz_status_NEW "
title="NEW - [REG] Comparing identical unions with alignment holes may start failing"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=210">bug 210</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;">CC</td>
<td>
</td>
<td>johannespfau@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [REG] Comparing identical unions with alignment holes may start failing"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=210#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [REG] Comparing identical unions with alignment holes may start failing"
href="http://bugzilla.gdcproject.org/show_bug.cgi?id=210">bug 210</a>
from <span class="vcard"><a class="email" href="mailto:johannespfau@gmail.com" title="Johannes Pfau <johannespfau@gmail.com>"> <span class="fn">Johannes Pfau</span></a>
</span></b>
<pre><span class="quote">> No, comparing Bar b1 == Bar b2 will not succeed in your case. Yes, this is different from dmd. Should it be considered a bug/regression? I don't mind reverting this for unions, but it might not always be correct anyway...</span >
You're right. I didn't realize we can't actually compare unions in any other
way. For the record: As we don't know the 'active' union field we can't do
field-by-field comparisons of unions. So the only meaningful way to compare
unions is by memcmp. And then we'd have to fill the 'holes' in structs again...
I don't know if this corner-case is important enough to really worry about
this.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are watching all bug changes.</li>
</ul>
</body>
</html>