<html>
<head>
<base href="https://bugs.llvm.org/">
</head>
<body><span class="vcard"><a class="email" href="mailto:lebedev.ri@gmail.com" title="Roman Lebedev <lebedev.ri@gmail.com>"> <span class="fn">Roman Lebedev</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - wrong code at -O2 code on MacOSX with clang 13.0.0"
href="https://bugs.llvm.org/show_bug.cgi?id=52361">bug 52361</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;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>INVALID
</td>
</tr>
<tr>
<td style="text-align:right;">CC</td>
<td>
</td>
<td>lebedev.ri@gmail.com
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - wrong code at -O2 code on MacOSX with clang 13.0.0"
href="https://bugs.llvm.org/show_bug.cgi?id=52361#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED INVALID - wrong code at -O2 code on MacOSX with clang 13.0.0"
href="https://bugs.llvm.org/show_bug.cgi?id=52361">bug 52361</a>
from <span class="vcard"><a class="email" href="mailto:lebedev.ri@gmail.com" title="Roman Lebedev <lebedev.ri@gmail.com>"> <span class="fn">Roman Lebedev</span></a>
</span></b>
<pre>This looks like UB to me. <a href="https://godbolt.org/z/5M4eP8h36">https://godbolt.org/z/5M4eP8h36</a>
/app/example.cpp:28:18: runtime error: reference binding to misaligned address
0x0000000001e2 for type 'const Name', which requires 8 byte alignment
0x0000000001e2: note: pointer points here
<memory cannot be printed>
SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /app/example.cpp:28:18
in</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>