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: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs