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

            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: unassignedb...@nondot.org
          Reporter: yaron.ke...@gmail.com
                CC: llvm-bugs@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
cl
doc_how_to_use.cpp
values=003D96D0 memberlist = 003D96D0
clang-cl
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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to