[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


           Summary: clang c++ crash with arrow operator on array in
           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

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::QualType, clang::SourceLocation, bool, const clang::CXXScopeSpec&,
clang::NamedDecl*, clang::LookupResult&, const
clang::TemplateArgumentListInfo*, bool): Assertion `BaseType->isPointerType()'

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