[LLVMbugs] [Bug 21488] New: Assertion failed: (isa<clang::sema::LambdaScopeInfo>( FunctionScopes[FunctionScopes.size() - 1]) && "The function on the top of sema's function-info stack must be a lambda")

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Nov 5 07:27:56 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=21488

            Bug ID: 21488
           Summary: Assertion failed: (isa<clang::sema::LambdaScopeInfo>(
                    FunctionScopes[FunctionScopes.size() - 1]) && "The
                    function on the top of sema's function-info stack must
                    be a lambda")
           Product: clang
           Version: trunk
          Hardware: Macintosh
                OS: MacOS X
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++14
          Assignee: unassignedclangbugs at nondot.org
          Reporter: ldionne.2 at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

The following code causes Clang r221326 to segfault:

------------------------------------------------------------------------------
#include <tuple>

std::tuple<int> id(std::tuple<int> x) { return x; }

template <typename Xs>
auto depth4(Xs xs) {
    int s;
    auto capture = [=](auto _) { _(xs), s; };
    capture(id);
}

template <typename Xs>
auto depth3(Xs xs) {
    depth4(xs);
}

template <typename Xs>
auto depth2(Xs xs) {
    depth3(xs);
}

template <typename Xs>
auto depth1(Xs xs) {
    depth2(xs);
}

int main() {
    std::tuple<int> xs;
    depth1(xs);
}
------------------------------------------------------------------------------

Note that the code will also _sometimes_ compile, and other times Clang will
simply stay stuck at 100% CPU usage until I kill it. Doing even slight
modifications like removing one depthN function seems to make Clang happy,
so I wasn't able to reduce the example more than that.

When it segfaults, the exact output is:
------------------------------------------------------------------------------
> ~/code/llvm/debug/bin/clang++ -std=c++1y -o /dev/null ~/desktop/bugreports/segfault_capture/main.cpp
Assertion failed: (isa<clang::sema::LambdaScopeInfo>(
FunctionScopes[FunctionScopes.size() - 1]) && "The function on the top of
sema's function-info stack must be a lambda"), function
getStackIndexOfNearestEnclosingCaptureReadyLambda, file
/Users/ldionne/code/llvm/tools/clang/lib/Sema/SemaLambda.cpp, line 72.
0  clang-3.6                0x000000011194410e
llvm::sys::PrintStackTrace(__sFILE*) + 46
1  clang-3.6                0x00000001119454bb
PrintStackTraceSignalHandler(void*) + 27
2  clang-3.6                0x0000000111945905 SignalHandler(int) + 565
3  libsystem_platform.dylib 0x00007fff8c10a5aa _sigtramp + 26
4  clang-3.6                0x0000000113da0d1b
clang::DeclarationNameInfo::DeclarationNameInfo(clang::DeclarationName,
clang::SourceLocation, clang::DeclarationNameLoc) + 43
5  clang-3.6                0x00000001119454eb raise + 27
6  clang-3.6                0x00000001119455a2 abort + 18
7  clang-3.6                0x0000000111945581 __assert_rtn + 129
8  clang-3.6                0x000000011350ffe7
getStackIndexOfNearestEnclosingCaptureReadyLambda(llvm::ArrayRef<clang::sema::FunctionScopeInfo
const*>, clang::VarDecl*) + 167
9  clang-3.6                0x000000011350fcbd
clang::getStackIndexOfNearestEnclosingCaptureCapableLambda(llvm::ArrayRef<clang::sema::FunctionScopeInfo
const*>, clang::VarDecl*, clang::Sema&) + 93
10 clang-3.6                0x000000011347963f
CheckIfAnyEnclosingLambdasMustCaptureAnyPotentialCaptures(clang::Expr*,
clang::sema::LambdaScopeInfo*, clang::Sema&) + 559
11 clang-3.6                0x0000000113479259
clang::Sema::ActOnFinishFullExpr(clang::Expr*, clang::SourceLocation, bool,
bool, bool) + 1337
12 clang-3.6                0x00000001135e4207
clang::Sema::ActOnExprStmt(clang::ActionResult<clang::Expr*, true>) + 135
13 clang-3.6                0x000000011375a778 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 2920
14 clang-3.6                0x000000011376f9dc clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 236
15 clang-3.6                0x000000011376737a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*)
+ 42
16 clang-3.6                0x0000000113759e03 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 499
17 clang-3.6                0x000000011378a94a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformLambdaScope(clang::LambdaExpr*,
clang::CXXMethodDecl*,
llvm::ArrayRef<std::__1::pair<clang::ActionResult<clang::Expr*, true>,
clang::QualType> >) + 2938
18 clang-3.6                0x0000000113789dc0 (anonymous
namespace)::TemplateInstantiator::TransformLambdaScope(clang::LambdaExpr*,
clang::CXXMethodDecl*,
llvm::ArrayRef<std::__1::pair<clang::ActionResult<clang::Expr*, true>,
clang::QualType> >) + 192
19 clang-3.6                0x000000011378926c clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformLambdaExpr(clang::LambdaExpr*) +
2380
20 clang-3.6                0x00000001137803d2 (anonymous
namespace)::TemplateInstantiator::TransformLambdaExpr(clang::LambdaExpr*) + 98
21 clang-3.6                0x000000011375b6d7 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 3095
22 clang-3.6                0x000000011375c329 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformInitializer(clang::Expr*, bool) +
457
23 clang-3.6                0x0000000113757cf9
clang::Sema::SubstInitializer(clang::Expr*,
clang::MultiLevelTemplateArgumentList const&, bool) + 121
24 clang-3.6                0x00000001137b1092
clang::Sema::InstantiateVariableInitializer(clang::VarDecl*, clang::VarDecl*,
clang::MultiLevelTemplateArgumentList const&) + 242
25 clang-3.6                0x000000011379fd34
clang::Sema::BuildVariableInstantiation(clang::VarDecl*, clang::VarDecl*,
clang::MultiLevelTemplateArgumentList const&,
llvm::SmallVector<clang::Sema::LateInstantiatedAttribute, 16u>*,
clang::DeclContext*, clang::LocalInstantiationScope*, bool) + 2180
26 clang-3.6                0x000000011379efdc
clang::TemplateDeclInstantiator::VisitVarDecl(clang::VarDecl*, bool) + 1004
27 clang-3.6                0x000000011379ebe2
clang::TemplateDeclInstantiator::VisitVarDecl(clang::VarDecl*) + 34
28 clang-3.6                0x000000011379051b
clang::declvisitor::Base<clang::declvisitor::make_ptr,
clang::TemplateDeclInstantiator, clang::Decl*>::Visit(clang::Decl*) + 1435
29 clang-3.6                0x00000001137a8b72
clang::Sema::SubstDecl(clang::Decl*, clang::DeclContext*,
clang::MultiLevelTemplateArgumentList const&) + 162
30 clang-3.6                0x000000011376b4e4 (anonymous
namespace)::TemplateInstantiator::TransformDefinition(clang::SourceLocation,
clang::Decl*) + 84
31 clang-3.6                0x000000011376748f clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformDeclStmt(clang::DeclStmt*) + 207
32 clang-3.6                0x0000000113759e65 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 597
33 clang-3.6                0x000000011376f9dc clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 236
34 clang-3.6                0x000000011376737a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*)
+ 42
35 clang-3.6                0x0000000113759e03 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 499
36 clang-3.6                0x0000000113759be1
clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList
const&) + 129
37 clang-3.6                0x00000001137af279
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 3801
38 clang-3.6                0x0000000113709fb8
clang::Sema::DeduceReturnType(clang::FunctionDecl*, clang::SourceLocation,
bool) + 184
39 clang-3.6                0x00000001133643d0
clang::Sema::DiagnoseUseOfDecl(clang::NamedDecl*, clang::SourceLocation,
clang::ObjCInterfaceDecl const*, bool) + 912
40 clang-3.6                0x00000001135b1be0
clang::FinishOverloadedCallExpr(clang::Sema&, clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*,
clang::OverloadCandidateSet*, clang::OverloadCandidate**,
clang::OverloadingResult, bool) + 464
41 clang-3.6                0x00000001135b19a9
clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool)
+ 681
42 clang-3.6                0x000000011336a378
clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool)
+ 2360
43 clang-3.6                0x000000011378c6a7 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::RebuildCallExpr(clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation, clang::Expr*) + 167
44 clang-3.6                0x000000011378d253 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr(clang::CallExpr*) + 611
45 clang-3.6                0x000000011377d532 (anonymous
namespace)::TemplateInstantiator::TransformCallExpr(clang::CallExpr*) + 66
46 clang-3.6                0x000000011375b0e8 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 1576
47 clang-3.6                0x000000011375a733 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 2851
48 clang-3.6                0x000000011376f9dc clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 236
49 clang-3.6                0x000000011376737a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*)
+ 42
50 clang-3.6                0x0000000113759e03 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 499
51 clang-3.6                0x0000000113759be1
clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList
const&) + 129
52 clang-3.6                0x00000001137af279
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 3801
53 clang-3.6                0x0000000113709fb8
clang::Sema::DeduceReturnType(clang::FunctionDecl*, clang::SourceLocation,
bool) + 184
54 clang-3.6                0x00000001133643d0
clang::Sema::DiagnoseUseOfDecl(clang::NamedDecl*, clang::SourceLocation,
clang::ObjCInterfaceDecl const*, bool) + 912
55 clang-3.6                0x00000001135b1be0
clang::FinishOverloadedCallExpr(clang::Sema&, clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*,
clang::OverloadCandidateSet*, clang::OverloadCandidate**,
clang::OverloadingResult, bool) + 464
56 clang-3.6                0x00000001135b19a9
clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool)
+ 681
57 clang-3.6                0x000000011336a378
clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool)
+ 2360
58 clang-3.6                0x000000011378c6a7 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::RebuildCallExpr(clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation, clang::Expr*) + 167
59 clang-3.6                0x000000011378d253 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr(clang::CallExpr*) + 611
60 clang-3.6                0x000000011377d532 (anonymous
namespace)::TemplateInstantiator::TransformCallExpr(clang::CallExpr*) + 66
61 clang-3.6                0x000000011375b0e8 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 1576
62 clang-3.6                0x000000011375a733 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 2851
63 clang-3.6                0x000000011376f9dc clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 236
64 clang-3.6                0x000000011376737a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*)
+ 42
65 clang-3.6                0x0000000113759e03 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 499
66 clang-3.6                0x0000000113759be1
clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList
const&) + 129
67 clang-3.6                0x00000001137af279
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 3801
68 clang-3.6                0x0000000113709fb8
clang::Sema::DeduceReturnType(clang::FunctionDecl*, clang::SourceLocation,
bool) + 184
69 clang-3.6                0x00000001133643d0
clang::Sema::DiagnoseUseOfDecl(clang::NamedDecl*, clang::SourceLocation,
clang::ObjCInterfaceDecl const*, bool) + 912
70 clang-3.6                0x00000001135b1be0
clang::FinishOverloadedCallExpr(clang::Sema&, clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*,
clang::OverloadCandidateSet*, clang::OverloadCandidate**,
clang::OverloadingResult, bool) + 464
71 clang-3.6                0x00000001135b19a9
clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool)
+ 681
72 clang-3.6                0x000000011336a378
clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool)
+ 2360
73 clang-3.6                0x000000011378c6a7 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::RebuildCallExpr(clang::Expr*,
clang::SourceLocation, llvm::MutableArrayRef<clang::Expr*>,
clang::SourceLocation, clang::Expr*) + 167
74 clang-3.6                0x000000011378d253 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCallExpr(clang::CallExpr*) + 611
75 clang-3.6                0x000000011377d532 (anonymous
namespace)::TemplateInstantiator::TransformCallExpr(clang::CallExpr*) + 66
76 clang-3.6                0x000000011375b0e8 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformExpr(clang::Expr*) + 1576
77 clang-3.6                0x000000011375a733 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 2851
78 clang-3.6                0x000000011376f9dc clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*,
bool) + 236
79 clang-3.6                0x000000011376737a clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformCompoundStmt(clang::CompoundStmt*)
+ 42
80 clang-3.6                0x0000000113759e03 clang::TreeTransform<(anonymous
namespace)::TemplateInstantiator>::TransformStmt(clang::Stmt*) + 499
81 clang-3.6                0x0000000113759be1
clang::Sema::SubstStmt(clang::Stmt*, clang::MultiLevelTemplateArgumentList
const&) + 129
82 clang-3.6                0x00000001137af279
clang::Sema::InstantiateFunctionDefinition(clang::SourceLocation,
clang::FunctionDecl*, bool, bool) + 3801
83 clang-3.6                0x0000000113709fb8
clang::Sema::DeduceReturnType(clang::FunctionDecl*, clang::SourceLocation,
bool) + 184
84 clang-3.6                0x00000001133643d0
clang::Sema::DiagnoseUseOfDecl(clang::NamedDecl*, clang::SourceLocation,
clang::ObjCInterfaceDecl const*, bool) + 912
85 clang-3.6                0x00000001135b1be0
clang::FinishOverloadedCallExpr(clang::Sema&, clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*,
clang::OverloadCandidateSet*, clang::OverloadCandidate**,
clang::OverloadingResult, bool) + 464
86 clang-3.6                0x00000001135b19a9
clang::Sema::BuildOverloadedCallExpr(clang::Scope*, clang::Expr*,
clang::UnresolvedLookupExpr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool)
+ 681
87 clang-3.6                0x000000011336a378
clang::Sema::ActOnCallExpr(clang::Scope*, clang::Expr*, clang::SourceLocation,
llvm::MutableArrayRef<clang::Expr*>, clang::SourceLocation, clang::Expr*, bool)
+ 2360
88 clang-3.6                0x0000000112e60b7c
clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*,
true>) + 3580
89 clang-3.6                0x0000000112e65a69
clang::Parser::ParseCastExpression(bool, bool, bool&,
clang::Parser::TypeCastState) + 17225
90 clang-3.6                0x0000000112e5fc83
clang::Parser::ParseCastExpression(bool, bool, clang::Parser::TypeCastState) +
83
91 clang-3.6                0x0000000112e5eb74
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 196
92 clang-3.6                0x0000000112e5ea7f
clang::Parser::ParseExpression(clang::Parser::TypeCastState) + 31
93 clang-3.6                0x0000000112ea46ac
clang::Parser::ParseExprStatement() + 60
94 clang-3.6                0x0000000112ea3689
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 2649
95 clang-3.6                0x0000000112ea2ae5
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 133
96 clang-3.6                0x0000000112ea9f62
clang::Parser::ParseCompoundStatementBody(bool) + 1282
97 clang-3.6                0x0000000112eaaad8
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 328
98 clang-3.6                0x0000000112ec764d
clang::Parser::ParseFunctionDefinition(clang::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&, clang::Parser::LateParsedAttrList*) +
3709
99 clang-3.6                0x0000000112e30f08
clang::Parser::ParseDeclGroup(clang::ParsingDeclSpec&, unsigned int, bool,
clang::SourceLocation*, clang::Parser::ForRangeInit*) + 520
100 clang-3.6                0x0000000112ec67bc
clang::Parser::ParseDeclOrFunctionDefInternal(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec&, clang::AccessSpecifier) + 1228
101 clang-3.6                0x0000000112ec5ed5
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*, clang::AccessSpecifier) + 197
102 clang-3.6                0x0000000112ec5660
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 3456
103 clang-3.6                0x0000000112ec4895
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 773
104 clang-3.6                0x0000000112e1efec clang::ParseAST(clang::Sema&,
bool, bool) + 988
105 clang-3.6                0x0000000111d8eb3a
clang::ASTFrontendAction::ExecuteAction() + 522
106 clang-3.6                0x0000000112341853
clang::CodeGenAction::ExecuteAction() + 3939
107 clang-3.6                0x0000000111d8e0b8
clang::FrontendAction::Execute() + 120
108 clang-3.6                0x0000000111d1fe49
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 1017
109 clang-3.6                0x0000000111dfdff1
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3201
110 clang-3.6                0x000000010fff6290 cc1_main(llvm::ArrayRef<char
const*>, char const*, void*) + 2496
111 clang-3.6                0x000000010ffe964b
ExecuteCC1Tool(llvm::ArrayRef<char const*>, llvm::StringRef) + 171
112 clang-3.6                0x000000010ffe8407 main + 1271
113 libdyld.dylib            0x00007fff8b48c5fd start + 1
Stack dump:
0.  Program arguments: /Users/ldionne/code/llvm/debug/bin/clang-3.6 -cc1
-triple x86_64-apple-macosx10.9.0 -emit-obj -mrelax-all -disable-free
-main-file-name main.cpp -mrelocation-model pic -pic-level 2 -mthread-model
posix -mdisable-fp-elim -masm-verbose -munwind-tables -target-cpu core2
-dwarf-column-info -resource-dir
/Users/ldionne/code/llvm/debug/bin/../lib/clang/3.6.0 -stdlib=libc++ -std=c++1y
-fdeprecated-macro -fdebug-compilation-dir /Users/ldionne/code/hana/debug
-ferror-limit 19 -fmessage-length 0 -stack-protector 1 -mstackrealign -fblocks
-fobjc-runtime=macosx-10.9.0 -fencode-extended-block-signature -fcxx-exceptions
-fexceptions -fmax-type-align=16 -fdiagnostics-show-option -o
/var/folders/6f/d7xhg3bx4zq467t3d6kb4fr80000gn/T/main-330091.o -x c++
/Users/ldionne/desktop/bugreports/segfault_capture/main.cpp 
1.  /Users/ldionne/desktop/bugreports/segfault_capture/main.cpp:31:14: current
parser token ')'
2.  /Users/ldionne/desktop/bugreports/segfault_capture/main.cpp:29:12: parsing
function body 'main'
3.  /Users/ldionne/desktop/bugreports/segfault_capture/main.cpp:29:12: in
compound statement ('{}')
clang-3.6: error: unable to execute command: Illegal instruction: 4
clang-3.6: error: clang frontend command failed due to signal (use -v to see
invocation)
clang version 3.6.0 
Target: x86_64-apple-darwin13.4.0
Thread model: posix
clang-3.6: note: diagnostic msg: PLEASE submit a bug report to
http://llvm.org/bugs/ and include the crash backtrace, preprocessed source, and
associated run script.
clang-3.6: note: diagnostic msg: 
********************

PLEASE ATTACH THE FOLLOWING FILES TO THE BUG REPORT:
Preprocessed source(s) and associated run script(s) are located at:
clang-3.6: note: diagnostic msg:
/var/folders/6f/d7xhg3bx4zq467t3d6kb4fr80000gn/T/main-c04c11.cpp
clang-3.6: note: diagnostic msg:
/var/folders/6f/d7xhg3bx4zq467t3d6kb4fr80000gn/T/main-c04c11.sh
clang-3.6: note: diagnostic msg: 

********************
------------------------------------------------------------------------------

-- 
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/20141105/dcdb1507/attachment.html>


More information about the llvm-bugs mailing list