[LLVMbugs] [Bug 7916] New: clang c++ crash in name lookup with unusual inheritance structure

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Aug 15 14:13:41 PDT 2010


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

           Summary: clang c++ crash in name lookup with unusual
                    inheritance structure
           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


Testcase:
struct A {
  struct B { };
};

struct C : A, A::B {
    void foo(B b);
};

Crashes with:
clang:
/home/eli/llvmgbuild/tools/clang/lib/Sema/../../include/clang/Sema/Lookup.h:578:
void clang::LookupResult::sanity() const: Assertion `ResultKind != Ambiguous ||
Decls.size() > 1 || (Decls.size() == 1 && Ambiguity ==
AmbiguousBaseSubobjects)' 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