[LLVMbugs] [Bug 7252] New: clang c++ crash in lookup for ambiguous template base classes

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Fri May 28 22:08:05 PDT 2010


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

           Summary: clang c++ crash in lookup for ambiguous template base
                    classes
           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:
namespace A {
  template<typename T> struct Base { typedef T t; };
}

namespace B {
  template<typename T> struct Base { typedef T t; };
}

template<typename T> struct Derived : A::Base<char>, B::Base<int> {
  typename Derived::Base<float>::t x;
};

Crashes with:
clang: /home/eli/llvm/tools/clang/lib/Sema/Lookup.h:548: void
clang::LookupResult::sanity() const: Assertion `(Paths != __null) ==
(ResultKind == Ambiguous && (Ambiguity == AmbiguousBaseSubobjectTypes ||
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