[LLVMbugs] [Bug 16930] New: ICE ExprConstant.cpp:3719: bool EvaluatePointer(const clang::Expr *, <anonymous>::LValue &, <anonymous>::EvalInfo &): Assertion `E->isRValue() && E->getType()->hasPointerRepresentation()' failed

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 18 14:32:19 PDT 2013


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

            Bug ID: 16930
           Summary: ICE ExprConstant.cpp:3719: bool EvaluatePointer(const
                    clang::Expr *, <anonymous>::LValue &,
                    <anonymous>::EvalInfo &): Assertion `E->isRValue() &&
                    E->getType()->hasPointerRepresentation()' failed
           Product: clang
           Version: 3.3
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: wlodzimierz.lipert at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Hi,

Unfortunately I can not provide source which causes ICE but I'm ready to assist
in debugging.
Thanks.

clang: /home/vlad/opt/llvm-3.3.src/tools/clang/lib/AST/ExprConstant.cpp:3719:
bool EvaluatePointer(const clang::Expr *, <anonymous>::LValue &,
<anonymous>::EvalInfo &): Assertion `E->isRValue() &&
E->getType()->hasPointerRepresentation()' failed.
0  clang           0x0000000002594425 llvm::sys::PrintStackTrace(_IO_FILE*) +
37
1  clang           0x000000000259499f
2  libpthread.so.0 0x00002aaaaaef6210
3  libc.so.6       0x00002aaaabb581e5 gsignal + 53
4  libc.so.6       0x00002aaaabb5b398 abort + 328
5  libc.so.6       0x00002aaaabb51272
6  libc.so.6       0x00002aaaabb51322
7  clang           0x0000000001519417
8  clang           0x00000000014dfb24
9  clang           0x00000000014e592c
10 clang           0x00000000014df418
11 clang           0x00000000014df12d
clang::Expr::EvaluateAsRValue(clang::Expr::EvalResult&, clang::ASTContext
const&) const + 237
12 clang           0x00000000014df4fc
clang::Expr::EvaluateAsBooleanCondition(bool&, clang::ASTContext const&) const
+ 44
13 clang           0x0000000000d8e5f7 clang::Sema::ActOnBinOp(clang::Scope*,
clang::SourceLocation, clang::tok::TokenKind, clang::Expr*, clang::Expr*) +
2103
14 clang           0x0000000000bf5876
clang::Parser::ParseRHSOfBinaryExpression(clang::ActionResult<clang::Expr*,
true>, clang::prec::Level) + 2726
15 clang           0x0000000000bf4d9a
clang::Parser::ParseAssignmentExpression(clang::Parser::TypeCastState) + 266
16 clang           0x0000000000bf4c79
clang::Parser::ParseExpression(clang::Parser::TypeCastState) + 9
17 clang           0x0000000000c28015 clang::Parser::ParseReturnStatement() +
181
18 clang           0x0000000000c23c5f
clang::Parser::ParseStatementOrDeclarationAfterAttributes(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*, clang::Parser::ParsedAttributesWithRange&)
+ 2943
19 clang           0x0000000000c23041
clang::Parser::ParseStatementOrDeclaration(llvm::SmallVector<clang::Stmt*,
32u>&, bool, clang::SourceLocation*) + 145
20 clang           0x0000000000c29e53
clang::Parser::ParseCompoundStatementBody(bool) + 1683
21 clang           0x0000000000c2d2db
clang::Parser::ParseFunctionStatementBody(clang::Decl*,
clang::Parser::ParseScope&) + 187
22 clang           0x0000000000c3a21a
clang::Parser::ParseLexedMethodDef(clang::Parser::LexedMethod&) + 538
23 clang           0x0000000000c39a65
clang::Parser::ParseLexedMethodDefs(clang::Parser::ParsingClass&) + 181
24 clang           0x0000000000beb0ea
clang::Parser::ParseCXXMemberSpecification(clang::SourceLocation,
clang::SourceLocation, clang::Parser::ParsedAttributesWithRange&, unsigned int,
clang::Decl*) + 4570
25 clang           0x0000000000be9150
clang::Parser::ParseClassSpecifier(clang::tok::TokenKind,
clang::SourceLocation, clang::DeclSpec&, clang::Parser::ParsedTemplateInfo
const&, clang::AccessSpecifier, bool, clang::Parser::DeclSpecContext,
clang::Parser::ParsedAttributesWithRange&) + 7648
26 clang           0x0000000000bcf20c
clang::Parser::ParseDeclarationSpecifiers(clang::DeclSpec&,
clang::Parser::ParsedTemplateInfo const&, clang::AccessSpecifier,
clang::Parser::DeclSpecContext, clang::Parser::LateParsedAttrList*) + 4316
27 clang           0x0000000000c2ff63
clang::Parser::ParseSingleDeclarationAfterTemplate(unsigned int,
clang::Parser::ParsedTemplateInfo const&, clang::ParsingDeclRAIIObject&,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 627
28 clang           0x0000000000c2f898
clang::Parser::ParseTemplateDeclarationOrSpecialization(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 824
29 clang           0x0000000000c2f323
clang::Parser::ParseDeclarationStartingWithTemplate(unsigned int,
clang::SourceLocation&, clang::AccessSpecifier, clang::AttributeList*) + 259
30 clang           0x0000000000bcdd25
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 869
31 clang           0x0000000000bbe09d
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1757
32 clang           0x0000000000be2bdd
clang::Parser::ParseInnerNamespace(std::__debug::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&,
std::__debug::vector<clang::IdentifierInfo*,
std::allocator<clang::IdentifierInfo*> >&,
std::__debug::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) + 525
33 clang           0x0000000000be26e0 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 6416
34 clang           0x0000000000bcdb61
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 417
35 clang           0x0000000000bbe09d
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1757
36 clang           0x0000000000be2bdd
clang::Parser::ParseInnerNamespace(std::__debug::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&,
std::__debug::vector<clang::IdentifierInfo*,
std::allocator<clang::IdentifierInfo*> >&,
std::__debug::vector<clang::SourceLocation,
std::allocator<clang::SourceLocation> >&, unsigned int, clang::SourceLocation&,
clang::ParsedAttributes&, clang::BalancedDelimiterTracker&) + 525
37 clang           0x0000000000be26e0 clang::Parser::ParseNamespace(unsigned
int, clang::SourceLocation&, clang::SourceLocation) + 6416
38 clang           0x0000000000bcdb61
clang::Parser::ParseDeclaration(llvm::SmallVector<clang::Stmt*, 32u>&, unsigned
int, clang::SourceLocation&, clang::Parser::ParsedAttributesWithRange&) + 417
39 clang           0x0000000000bbe09d
clang::Parser::ParseExternalDeclaration(clang::Parser::ParsedAttributesWithRange&,
clang::ParsingDeclSpec*) + 1757
40 clang           0x0000000000bbd940
clang::Parser::ParseTopLevelDecl(clang::OpaquePtr<clang::DeclGroupRef>&) + 304
41 clang           0x0000000000bb9da6 clang::ParseAST(clang::Sema&, bool, bool)
+ 454
42 clang           0x0000000000a42df2 clang::CodeGenAction::ExecuteAction() +
194
43 clang           0x0000000000874d61 clang::FrontendAction::Execute() + 113
44 clang           0x0000000000845e01
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 913
45 clang           0x000000000081ada8
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 3192
46 clang           0x000000000080cc98 cc1_main(char const**, char const**, char
const*, void*) + 792
47 clang           0x00000000008151b3 main + 7107
48 libc.so.6       0x00002aaaabb44995 __libc_start_main + 245
49 clang           0x000000000080c8bd

-- 
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/20130818/4396fab6/attachment.html>


More information about the llvm-bugs mailing list