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

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Dec 7 00:19:46 PST 2015


            Bug ID: 25761
           Summary: clang-cl + boost intrusive = miscompile
           Product: new-bugs
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: yaron.keren at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Created attachment 15405
  --> https://llvm.org/bugs/attachment.cgi?id=15405&action=edit
example code

I'm not sure what the problem source is, but boost intrusive examples fail when
compiled with clang-cl (but pass with clang targetting mingw). This is reported
to boost trac too, https://svn.boost.org/trac/boost/ticket/11832

Attached is a reduced example doc_how_to_use.cpp and a batch file running it
under clang(mingw), cl, clang-cl. The two reported address should be the
identical per the original example which compares them. Yet, clang-cl (last)
prints different addresses:

clang++ (i686,mingw)
values=0x3519d0 memberlist = 0x3519d0
values=003D96D0 memberlist = 003D96D0
values=005196D0 memberlist = 005196D1

clang version 3.8.0 (trunk 253440).

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/20151207/acc3e4dd/attachment.html>

More information about the llvm-bugs mailing list