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: unassignedclangb...@nondot.org
Reporter: mar...@dreseler.de
CC: llvm-bugs@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.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs