<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 --- - Ubsan: std::map<T, std::function<F>> fails with -fsanitize=alignment"
   href="https://llvm.org/bugs/show_bug.cgi?id=25122">25122</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Ubsan: std::map<T, std::function<F>> fails with -fsanitize=alignment
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>clang
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.7
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Macintosh
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>MacOS X
          </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>unassignedclangbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>gburton.feral@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=15042" name="attach_15042" title="Sample project which demonstrates behaviour">attachment 15042</a> <a href="attachment.cgi?id=15042&action=edit" title="Sample project which demonstrates behaviour">[details]</a></span>
Sample project which demonstrates behaviour

Compiling a program which contains a declaration of std::map<T,
std::function<F>> (where T and F are types) with `-fsanitize=alignment
-fsanitize-undefined-trap-on-error` produces an executable which fails to run
(crashes with EXC_BAD_INSTRUCTION).

Tested with Apple Clang, and the official Clang3.7 binary release.

Runs without errors on GCC-5.2.0</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>