[LLVMbugs] [Bug 11359] New: Crash in simple lambda expression
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Fri Nov 11 11:01:16 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=11359
Bug #: 11359
Summary: Crash in simple lambda expression
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: markus at trippelsdorf.de
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
Consider:
% cat test.ii
int main() {
[]{}();
}
% clang -cc1 -O0 -std=c++0x -x c++ test.ii
0 clang 0x000000000171f93f
1 clang 0x000000000171fe59
2 libpthread.so.0 0x00007f005f902270
3 clang 0x0000000000a047a4
clang::Sema::MaybeConvertParenListExprToParenExpr(clang::Scope*, clang::Expr*)
+ 20
4 clang 0x00000000009fa6ba clang::Sema::ActOnCallExpr(clang::Scope*,
clang::Expr*, clang::SourceLocation, clang::ASTMultiPtr<clang::Expr*>,
clang::SourceLocation, clang::Expr*, bool) + 42
5 clang 0x00000000008d0891
clang::Parser::ParsePostfixExpressionSuffix(clang::ActionResult<clang::Expr*,
true>) + 1569
6 clang 0x00000000008d31f4 clang::Parser::ParseCastExpression(bool,
bool, bool&, bool) + 8596
7 clang 0x00000000008cf549
clang::Parser::ParseAssignmentExpression() + 121
8 clang 0x00000000008cf4bc clang::Parser::ParseExpression() + 12
9 clang 0x0000000000897b76
clang::Parser::ParseExprStatement(clang::ParsedAttributes&) + 54
10 clang 0x00000000008975d4
clang::Parser::ParseStatementOrDeclaration(clang::ASTOwningVector<clang::Stmt*,
32u>&, bool) + 1844
11 clang 0x000000000089c852
clang::Parser::ParseCompoundStatementBody(bool) + 1218
12 clang 0x000000000089dcfe
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 174
13 clang 0x00000000008ab02f
clang::Parser::ParseFunctionDefinition(clang::Parser::ParsingDeclarator&,
clang::Parser::ParsedTemplateInfo const&) + 2223
14 clang 0x00000000008b8513
clang::Parser::ParseDeclGroup(clang::Parser::ParsingDeclSpec&, unsigned int,
bool, clang::SourceLocation*, clang::Parser::ForRangeInit*) + 1027
15 clang 0x00000000008aa20a
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::Parser::ParsingDeclSpec&,
clang::AccessSpecifier) + 698
16 clang 0x00000000008aa3ed
clang::Parser::ParseDeclarationOrFunctionDefinition(clang::ParsedAttributes&,
clang::AccessSpecifier) + 397
17 clang 0x00000000008a957f
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::Parser::ParsingDeclSpec*) + 3391
18 clang 0x00000000008a87ce
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 254
19 clang 0x000000000088bf6e clang::ParseAST(clang::Sema&, bool) + 318
20 clang 0x0000000000653417
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 983
21 clang 0x000000000063c000
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 2848
22 clang 0x0000000000632f04 cc1_main(char const**, char const**, char
const*, void*) + 5588
23 clang 0x00000000006381d5 main + 757
24 libc.so.6 0x00007f005f12c35d __libc_start_main + 237
25 clang 0x0000000000631849
Stack dump:
0. Program arguments: clang -cc1 -O0 -std=c++0x -x c++ test.ii
1. test.ii:2:15: current parser token ')'
2. test.ii:1:12: parsing function body 'main'
3. test.ii:1:12: in compound statement ('{}')
[1] 19416 segmentation fault clang -cc1 -O0 -std=c++0x -x c++ test.ii
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list