<html>
    <head>
      <base href="https://llvm.org/bugs/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - clang-cl + boost intrusive = miscompile"
   href="https://llvm.org/bugs/show_bug.cgi?id=25761">25761</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>clang-cl + boost intrusive = miscompile
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>yaron.keren@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=15405" name="attach_15405" title="example code">attachment 15405</a> <a href="attachment.cgi?id=15405&action=edit" title="example code">[details]</a></span>
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, <a href="https://svn.boost.org/trac/boost/ticket/11832">https://svn.boost.org/trac/boost/ticket/11832</a>

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).</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>