[llvm-bugs] [Bug 25761] clang-cl + boost intrusive = miscompile

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Dec 8 13:20:31 PST 2015


https://llvm.org/bugs/show_bug.cgi?id=25761

Reid Kleckner <rnk at google.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #3 from Reid Kleckner <rnk at google.com> ---
This is not a Clang bug, this is a boost bug. In
boost/intrusive/detail/parent_from_member.hpp, the implementation of
offset_from_pointer_to_member goes down the #idefs to the #else case, which
subtracts one from the offset to create the off-by-one pointer.

BOOST_INTRUSIVE_MSVC_ABI_PTR_TO_MEMBER should be defined for clang-cl.

-- 
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/20151208/78ef2e4b/attachment-0001.html>


More information about the llvm-bugs mailing list