[llvm-bugs] [Bug 39148] New: Compiler segfaults when iterating over boost::bimap

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Oct 2 01:12:29 PDT 2018


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

            Bug ID: 39148
           Summary: Compiler segfaults when iterating over boost::bimap
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: markus at dreseler.de
                CC: llvm-bugs at lists.llvm.org

The attached six lines kill clang 7 under OS X 10.14 as well as clang trunk
under godbolt: https://godbolt.org/z/vnPguy

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

-- 
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/20181002/8d5555f4/attachment.html>


More information about the llvm-bugs mailing list