[llvm-bugs] [Bug 52361] wrong code at -O2 code on MacOSX with clang 13.0.0
via llvm-bugs
llvm-bugs at lists.llvm.org
Sat Oct 30 06:17:06 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=52361
Roman Lebedev <lebedev.ri at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
CC| |lebedev.ri at gmail.com
--- Comment #1 from Roman Lebedev <lebedev.ri at gmail.com> ---
This looks like UB to me. https://godbolt.org/z/5M4eP8h36
/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
--
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/20211030/4ba511a6/attachment.html>
More information about the llvm-bugs
mailing list