[LLVMbugs] [Bug 7405] New: clang c++ crash with arrow operator on array in template
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jun 17 22:18:14 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7405
Summary: clang c++ crash with arrow operator on array in
template
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Blocks: 5511
Testcase:
struct hb_sanitize_context_t {
int start;
};
template <typename Type> static bool sanitize() {
hb_sanitize_context_t c[1];
return !c->start;
}
bool closure = sanitize<int>();
Crashes with:
clang: SemaExpr.cpp:2690:
clang::ASTOwningResult<&clang::ActionBase::DeleteExpr>
clang::Sema::BuildMemberReferenceExpr(clang::ASTOwningResult<&clang::ActionBase::DeleteExpr>,
clang::QualType, clang::SourceLocation, bool, const clang::CXXScopeSpec&,
clang::NamedDecl*, clang::LookupResult&, const
clang::TemplateArgumentListInfo*, bool): Assertion `BaseType->isPointerType()'
failed.
--
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