<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </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 - Compiler segfaults when iterating over boost::bimap"
   href="https://bugs.llvm.org/show_bug.cgi?id=39148">39148</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Compiler segfaults when iterating over boost::bimap
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>All
          </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>markus@dreseler.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>The attached six lines kill clang 7 under OS X 10.14 as well as clang trunk
under godbolt: <a href="https://godbolt.org/z/vnPguy">https://godbolt.org/z/vnPguy</a>

Excerpt from error message:

1.      clangbug.cpp:6:45: current parser token '{'
2.      clangbug.cpp:5:12: parsing function body 'main'
3.      clangbug.cpp:5:12: in compound statement ('{}')
[...]
4  clang-7                  0x0000000106cd42db
clang::Sema::CheckCompleteVariableDeclaration(clang::VarDecl*) + 1555
5  clang-7                  0x0000000106cd3629
clang::Sema::AddInitializerToDecl(clang::Decl*, clang::Expr*, bool) + 3471
6  clang-7                  0x0000000106ef38c8
clang::Sema::BuildCXXForRangeStmt(clang::SourceLocation, clang::SourceLocation,
clang::SourceLocation, clang::Stmt*, clang::Stmt*, clang::Stmt*, clang::Expr*,
clang::Expr*, clang::Stmt*, clang::SourceLocation,
clang::Sema::BuildForRangeKind) + 5526
[...]
clang-7: error: unable to execute command: Segmentation fault: 11</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>